diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-15 00:44:52 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-15 00:44:52 +1100 |
| commit | 5c127e53a329ff694088f46b4e0a5588b99cb2eb (patch) | |
| tree | 7f35fefaa0f79254ca34d534f31173d1087ff052 /src/components/SettingsModal.vue | |
| parent | ebe74b640adaed5382046a49b1c2d6a48b31ebfd (diff) | |
Reset events upon change of 'images only' setting
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; |
