From 9165cc1efcf7791f78b61b2c51a9de651b1b09aa Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 2 Jul 2021 22:53:16 +0200 Subject: viewer: types normalization - gallery.d.ts GitHub: closes #301 --- viewer/src/store/uiStore.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'viewer/src/store/uiStore.ts') diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts index f065cdd..f5bb898 100644 --- a/viewer/src/store/uiStore.ts +++ b/viewer/src/store/uiStore.ts @@ -17,8 +17,9 @@ -- along with this program. If not, see . */ -import { createModule, mutation, action } from "vuex-class-component"; +import { Config } from "@/@types/gallery"; import ItemComparators, { ItemSort } from "@/services/itemComparators"; +import { action, createModule, mutation } from "vuex-class-component"; const VuexModule = createModule({ namespaced: "uiStore", @@ -49,7 +50,7 @@ export default class UIStore extends VuexModule { this.sort = sort; } - @action async initFromConfig(config: Gallery.Config) { + @action async initFromConfig(config: Config) { if (config.initialItemSort) { const itemSort = ItemComparators.ITEM_SORTS[config.initialItemSort]; if (itemSort) this.setSort(itemSort); -- cgit v1.2.3