Fix dialog titles

This commit is contained in:
Girish Ramakrishnan
2025-11-07 17:49:51 +01:00
parent f7f55710d1
commit 4fd399eae9
5 changed files with 22 additions and 22 deletions

View File

@@ -275,10 +275,10 @@ onMounted(async () =>{
<Dialog ref="volumeDialog"
class="volume-dialog"
:title="volumeDialogData.mode === 'edit' ? $t('volumes.editVolumeDialog.title', { name: volumeDialogData.name }) : $t('volumes.addVolumeDialog.title')"
:title="volumeDialogData.mode === 'edit' ? $t('volumes.editVolumeDialog.title') : $t('volumes.addVolumeDialog.title')"
:reject-label="$t('main.dialog.cancel')"
reject-style="secondary"
:confirm-label="$t('main.action.add')"
:confirm-label="volumeDialogData.mode === 'edit' ? $t('main.dialog.save') : $t('main.action.add')"
:confirm-active="!volumeDialogData.busy && isFormValid"
:confirm-busy="volumeDialogData.busy"
@confirm="onSubmit()"
@@ -289,9 +289,9 @@ onMounted(async () =>{
<div class="error-label" v-show="volumeDialogData.error">{{ volumeDialogData.error }}</div>
<FormGroup v-if="volumeDialogData.mode === 'new'">
<FormGroup>
<label for="volumeName">{{ $t('volumes.name') }}</label>
<TextInput id="volumeName" v-model="volumeDialogData.name" />
<TextInput id="volumeName" v-model="volumeDialogData.name" :readonly="volumeDialogData.mode === 'edit' ? true : undefined"/>
</FormGroup>
<FormGroup>