Skip to content

Open source personal finance application

refactor: update button labels and improve styling consistency across form components

Ilya Komichevee9cebe47252
diff --git a/app/components/categories/Form.vue b/app/components/categories/Form.vue
index 5cf0472a..faf95bcc 100644
--- a/app/components/categories/Form.vue
+++ b/app/components/categories/Form.vue
@@ -254,7 +254,7 @@ async function onSave() {
rounded
@click="close"
>
- {{ t('base.save') }}
+ {{ t('base.apply') }}
</UiButtonAccent>
</div>
</div>
@@ -311,7 +311,7 @@ async function onSave() {
:key="icon"
:class="[{ '!border-accent-1': icon === props.categoryForm.icon }]"
:style="{ background: props.categoryForm.color }"
- class="flex-center size-10 cursor-pointer rounded-full border-2 border-transparent text-icon-primary"
+ class="flex-center text-icon-primary size-10 cursor-pointer rounded-full border-2 border-transparent"
@click="emit('updateValue', 'icon', icon)"
>
<Icon :name="icon" size="20" />
@@ -324,7 +324,7 @@ async function onSave() {
rounded
@click="close"
>
- {{ t('base.save') }}
+ {{ t('base.apply') }}
</UiButtonAccent>
</div>
</div>
@@ -372,7 +372,7 @@ async function onSave() {
rounded
@click="close"
>
- {{ t('base.save') }}
+ {{ t('base.apply') }}
</UiButtonAccent>
</div>
</div>
diff --git a/app/components/filter/FilterSelector.vue b/app/components/filter/FilterSelector.vue
index 577a5445..3d32b12a 100644
--- a/app/components/filter/FilterSelector.vue
+++ b/app/components/filter/FilterSelector.vue
@@ -87,7 +87,7 @@ const modals = ref({
rounded
@click="close"
>
- {{ t('base.save') }}
+ {{ t('base.apply') }}
</UiButtonAccent>
</div>
</div>
@@ -160,7 +160,7 @@ const modals = ref({
rounded
@click="close"
>
- {{ t('base.save') }}
+ {{ t('base.apply') }}
</UiButtonAccent>
</div>
</div>
diff --git a/app/components/form/Switch.vue b/app/components/form/Switch.vue
index 7d63127c..dbd0bfca 100644
--- a/app/components/form/Switch.vue
+++ b/app/components/form/Switch.vue
@@ -16,7 +16,7 @@ const emit = defineEmits<{
</div>
<div
- :class="{ 'bg-blue-500': value, 'bg-item-11': !value }"
+ :class="{ 'bg-accent-1': value, 'bg-item-11': !value }"
class="relative h-6 w-11 rounded-xl transition-colors ease-in-out"
>
<div
diff --git a/app/components/wallets/Form.vue b/app/components/wallets/Form.vue
index 273a2e83..dc702aa8 100644
--- a/app/components/wallets/Form.vue
+++ b/app/components/wallets/Form.vue
@@ -260,7 +260,7 @@ async function onSave() {
rounded
@click="close"
>
- {{ t('base.save') }}
+ {{ t('base.apply') }}
</UiButtonAccent>
</div>
</div>
diff --git a/app/components/wallets/SortModal.vue b/app/components/wallets/SortModal.vue
index dfeb392f..8776c00e 100644
--- a/app/components/wallets/SortModal.vue
+++ b/app/components/wallets/SortModal.vue
@@ -67,7 +67,7 @@ async function saveWalletsOrder(close: () => void) {
<div class="bottomSheetContentBottom">
<UiButtonAccent
rounded
- @click="() => saveWalletsOrder(close)"
+ @click="saveWalletsOrder(close)"
>
{{ t('base.save') }}
</UiButtonAccent>
diff --git a/i18n/locales/en-US.js b/i18n/locales/en-US.js
index 8843e793..4a8e88bd 100644
--- a/i18n/locales/en-US.js
+++ b/i18n/locales/en-US.js
@@ -20,6 +20,7 @@ export default {
base: {
add: 'Create',
+ apply: 'Apply',
delete: 'Delete',
duplicate: 'Duplicate',
edit: 'Edit',
diff --git a/i18n/locales/ru-RU.js b/i18n/locales/ru-RU.js
index da36f243..4110961b 100644
--- a/i18n/locales/ru-RU.js
+++ b/i18n/locales/ru-RU.js
@@ -20,6 +20,7 @@ export default {
base: {
add: 'Создать',
+ apply: 'Применить',
delete: 'Удалить',
duplicate: 'Дублировать',
edit: 'Редактировать',