Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
fix(plot): use constant for folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoishi committed Sep 26, 2022
1 parent d73038d commit 5efe17b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export {
PIECE_SIZE,
GB,
CONTEXT_MENU,
PLOT_FOLDER,
createApi,
generateNodeName,
getErrorMessage,
Expand Down
2 changes: 2 additions & 0 deletions src/lib/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,5 @@ export function getErrorMessage(error: unknown): string | undefined {
return;
}
}

export const PLOT_FOLDER = '/plots';
2 changes: 1 addition & 1 deletion src/pages/SetupPlot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default defineComponent({
},
async mounted() {
await this.updateDriveStats();
const path = (await tauri.path.dataDir()) + util.appName + '/plots';
const path = (await tauri.path.dataDir()) + util.appName + util.PLOT_FOLDER;
this.store.setPlotPath(path);
},
async created() {
Expand Down

0 comments on commit 5efe17b

Please sign in to comment.