feat: implement some TODOs
This commit is contained in:
@@ -72,8 +72,7 @@ export const useAchievementsStore = defineStore("achievements", () => {
|
||||
};
|
||||
|
||||
return {
|
||||
// TODO: rename to unlocked
|
||||
achievements: computed(() => storage.value.unlocked),
|
||||
unlocked: computed(() => storage.value.unlocked),
|
||||
advancement: computed(() => storage.value.advancement),
|
||||
allObtained: computed(
|
||||
() => storage.value.unlocked.length === ACHIEVEMENTS.length,
|
||||
|
||||
@@ -96,15 +96,7 @@ export const useConfirmationModal = defineStore("confirmationModal", {
|
||||
})
|
||||
.call(() => {
|
||||
const closedCallback = this.onClosed;
|
||||
|
||||
// TODO: this.$reset() ?
|
||||
this.isVisible = false;
|
||||
this.isClosing = false;
|
||||
this.isOpen = false;
|
||||
this.text = "";
|
||||
this.onConfirm = null;
|
||||
this.onClosed = null;
|
||||
|
||||
this.$reset();
|
||||
closedCallback?.(choice);
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user