Skip to content

Commit

Permalink
💄 Small frontend improvements of exported map
Browse files Browse the repository at this point in the history
  • Loading branch information
Poeschl committed Sep 9, 2024
1 parent 7fedf56 commit 338eb1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/components/MapEditorExportBox.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<template>
<InfoBoxTemplate title="Export Map">
<div class="control">
<div class="field control">
<button class="button is-primary is-fullwidth" :class="{ 'is-loading': exporting }" @click.prevent="exportMap">
<div class="icon mr-1">
<FontAwesomeIcon icon="fa-solid fa-file-export" />
</div>
Export
</button>
</div>
<div class="has-text-centered">The exported image will include map attributes.</div>
</InfoBoxTemplate>
</template>

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/stores/ConfigStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const useConfigStore = defineStore("configStore", () => {
const blob = new Blob([response], { type: "image/png" });
const link = document.createElement("a");
link.href = URL.createObjectURL(blob);
link.download = `${map.mapName}.png`;
link.download = `${map.mapName}.rr.png`;
setTimeout(() => URL.revokeObjectURL(link.href), 5000);
return link;
});
Expand Down

0 comments on commit 338eb1d

Please sign in to comment.