diff options
Diffstat (limited to 'src/components/SettingsModal.vue')
| -rw-r--r-- | src/components/SettingsModal.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/SettingsModal.vue b/src/components/SettingsModal.vue index d9caa34..bb82016 100644 --- a/src/components/SettingsModal.vue +++ b/src/components/SettingsModal.vue @@ -88,7 +88,7 @@ const saveIndRef = ref(null as HTMLDivElement | null); const store = useStore(); // Events -const emit = defineEmits(['close']); +const emit = defineEmits(['close', 'change']); // Settings change handling const saved = ref(false); // Set to true after a setting is saved @@ -102,6 +102,7 @@ const lastCtg = computed(() => { // When all but one category is disabled, names }); function onSettingChg(option: string){ store.save(option); + emit('change', option); // Make 'Saved' indicator appear/animate if (!saved.value){ saved.value = true; |
