diff --git a/src/components/desktop/TwoColumnSelect.vue b/src/components/desktop/TwoColumnSelect.vue index 8edbd9bc..32c035f1 100644 --- a/src/components/desktop/TwoColumnSelect.vue +++ b/src/components/desktop/TwoColumnSelect.vue @@ -12,14 +12,14 @@ @@ -87,8 +87,8 @@ export default { 'readonly', 'label', 'selectionText', - 'showPrimaryName', - 'showSecondaryIcon', + 'showSelectionPrimaryText', + 'showSelectionSecondaryIcon', 'primaryKeyField', 'primaryValueField', 'primaryTitleField', @@ -165,26 +165,26 @@ export default { return null; } }, - noItemDisplayName() { + noSelectionText() { return this.noItemText ? this.noItemText : this.$t('None'); }, - primaryItemDisplayName() { + selectionPrimaryItemText() { if (this.primaryValueField && this.primaryTitleField) { if (this.currentPrimaryValue) { - return getNameByKeyValue(this.items, this.currentPrimaryValue, this.primaryValueField, this.primaryTitleField, this.noItemDisplayName); + return getNameByKeyValue(this.items, this.currentPrimaryValue, this.primaryValueField, this.primaryTitleField, this.noSelectionText); } else { - return this.noItemDisplayName; + return this.noSelectionText; } } else { return this.currentPrimaryValue; } }, - secondaryItemDisplayName() { + selectionSecondaryItemText() { if (this.secondaryValueField && this.secondaryTitleField) { if (this.currentSecondaryValue && this.selectedPrimaryItem && this.selectedPrimaryItem[this.primarySubItemsField]) { - return getNameByKeyValue(this.selectedPrimaryItem[this.primarySubItemsField], this.currentSecondaryValue, this.secondaryValueField, this.secondaryTitleField, this.noItemDisplayName); + return getNameByKeyValue(this.selectedPrimaryItem[this.primarySubItemsField], this.currentSecondaryValue, this.secondaryValueField, this.secondaryTitleField, this.noSelectionText); } else { - return this.noItemDisplayName; + return this.noSelectionText; } } else { return this.currentSecondaryValue; diff --git a/src/views/desktop/transactions/list/dialogs/EditDialog.vue b/src/views/desktop/transactions/list/dialogs/EditDialog.vue index 9ce09291..92180a94 100644 --- a/src/views/desktop/transactions/list/dialogs/EditDialog.vue +++ b/src/views/desktop/transactions/list/dialogs/EditDialog.vue @@ -85,7 +85,7 @@ secondary-icon-field="icon" secondary-icon-type="category" secondary-color-field="color" :readonly="mode === 'view'" :disabled="loading || submitting || !hasAvailableExpenseCategories" - :show-primary-name="true" + :show-selection-primary-text="true" :label="$t('Category')" :placeholder="$t('Category')" :items="allCategories[allCategoryTypes.Expense]" v-model="transaction.expenseCategory"> @@ -99,7 +99,7 @@ secondary-icon-field="icon" secondary-icon-type="category" secondary-color-field="color" :readonly="mode === 'view'" :disabled="loading || submitting || !hasAvailableIncomeCategories" - :show-primary-name="true" + :show-selection-primary-text="true" :label="$t('Category')" :placeholder="$t('Category')" :items="allCategories[allCategoryTypes.Income]" v-model="transaction.incomeCategory"> @@ -113,7 +113,7 @@ secondary-icon-field="icon" secondary-icon-type="category" secondary-color-field="color" :readonly="mode === 'view'" :disabled="loading || submitting || !hasAvailableTransferCategories" - :show-primary-name="true" + :show-selection-primary-text="true" :label="$t('Category')" :placeholder="$t('Category')" :items="allCategories[allCategoryTypes.Transfer]" v-model="transaction.transferCategory">