15 refactor module selection to use store

This commit is contained in:
survellow
2023-11-29 12:00:22 +01:00
parent d41e6f4a3c
commit 1f41abff8b
3 changed files with 52 additions and 82 deletions

View File

@ -27,6 +27,9 @@ const moduleStore = defineStore("moduleStore", {
this.modules.set(module.uuid, module);
});
},
isEmpty(): boolean {
return this.modules.size === 0;
},
countModules(): number {
return this.modules.size;
},