diff --git a/src/pages/settings/tabs/currencies/edit-currency.vue b/src/pages/settings/tabs/currencies/edit-currency.vue index aecd2500..27f420a4 100644 --- a/src/pages/settings/tabs/currencies/edit-currency.vue +++ b/src/pages/settings/tabs/currencies/edit-currency.vue @@ -111,8 +111,8 @@ export default defineComponent({ )); const isFormDirty = computed(() => - isRateChanged.value || - (props.currency.custom && !isChecked.value) + isRateChanged.value + || (props.currency.custom && !isChecked.value) ); const onBaseFocus = () => { @@ -124,8 +124,8 @@ export default defineComponent({ isBaseEditing.value = false; }; const toggleChange = (event) => { - isChecked.value = !event.target.checked - } + isChecked.value = !event.target.checked; + }; watch( () => form.baseRate, @@ -145,8 +145,8 @@ export default defineComponent({ ); onMounted(() => { - isChecked.value = props.currency.custom - }) + isChecked.value = props.currency.custom; + }); const onDeleteHandler = () => { emit('delete'); @@ -163,7 +163,8 @@ export default defineComponent({ baseCode: props.currency.quoteCode, quoteCode: props.currency.code, }, - ]), + ]); + emit('submit'); addSuccessNotification('Successfully updated.'); @@ -173,7 +174,7 @@ export default defineComponent({ return; } addErrorNotification('Unexpected error') - } + }; }; const updateExchangeRates = async () => { diff --git a/src/pages/settings/tabs/currencies/list.vue b/src/pages/settings/tabs/currencies/list.vue index 8c4bd5f7..8d8a937d 100644 --- a/src/pages/settings/tabs/currencies/list.vue +++ b/src/pages/settings/tabs/currencies/list.vue @@ -148,7 +148,7 @@ export default defineComponent({ const onSubmitHandler = () => { loadRates(); - toggleActiveItem(null) + toggleActiveItem(null); }; const isDeletionDisabled = (currency: UserCurrencyRecord) => (