Fix dialog titles
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user