Skip to content

Commit 2733d10

Browse files
committed
UI: add autoMigrate to resizeVolume
1 parent b07f591 commit 2733d10

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ui/src/views/storage/ResizeVolume.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@
4747
:checked="shrinkOk"
4848
@change="val => { shrinkOk = val }"/>
4949
</a-form-item>
50+
<a-form-item name="autoMigrate" ref="autoMigrate" :label="$t('label.automigrate.volume')">
51+
<template #label>
52+
<tooltip-label :title="$t('label.automigrate.volume')" :tooltip="apiParams.automigrate.description"/>
53+
</template>
54+
<a-switch
55+
v-model:checked="form.autoMigrate"
56+
:checked="autoMigrate"
57+
@change="val => { autoMigrate = val }"/>
58+
</a-form-item>
5059
<div :span="24" class="action-button">
5160
<a-button @click="closeModal">{{ $t('label.cancel') }}</a-button>
5261
<a-button :loading="loading" type="primary" ref="submit" @click="handleSubmit">{{ $t('label.ok') }}</a-button>
@@ -58,9 +67,13 @@
5867
import { ref, reactive, toRaw } from 'vue'
5968
import { api } from '@/api'
6069
import { mixinForm } from '@/utils/mixin'
70+
import TooltipLabel from '@/components/widgets/TooltipLabel'
6171
6272
export default {
6373
name: 'ResizeVolume',
74+
components: {
75+
TooltipLabel
76+
},
6477
mixins: [mixinForm],
6578
props: {
6679
resource: {

0 commit comments

Comments
 (0)