mirror of https://github.com/apache/cloudstack.git
ui: support isdynamicallyscalable param for iso (#9092)
Register/List/Update iso APIs already support isdynamicallyscalable parama. This PR makes them available in the UI. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
daf6b9d103
commit
2d4d370be8
|
|
@ -231,7 +231,7 @@ export default {
|
|||
}
|
||||
return fields
|
||||
},
|
||||
details: ['name', 'id', 'displaytext', 'checksum', 'ostypename', 'size', 'bootable', 'isready', 'directdownload', 'isextractable', 'ispublic', 'isfeatured', 'crosszones', 'account', 'domain', 'created', 'userdatadetails', 'userdatapolicy', 'url'],
|
||||
details: ['name', 'id', 'displaytext', 'checksum', 'ostypename', 'size', 'bootable', 'isready', 'directdownload', 'isextractable', 'ispublic', 'isfeatured', 'isdynamicallyscalable', 'crosszones', 'account', 'domain', 'created', 'userdatadetails', 'userdatapolicy', 'url'],
|
||||
searchFilters: () => {
|
||||
var filters = ['name', 'zoneid', 'tags']
|
||||
if (['Admin', 'DomainAdmin'].includes(store.getters.userInfo.roletype)) {
|
||||
|
|
|
|||
|
|
@ -227,29 +227,39 @@
|
|||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<a-form-item ref="isextractable" name="isextractable">
|
||||
<template #label>
|
||||
<tooltip-label :title="$t('label.isextractable')" :tooltip="apiParams.isextractable.description"/>
|
||||
</template>
|
||||
<a-switch v-model:checked="form.isextractable" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item
|
||||
ref="ispublic"
|
||||
name="ispublic"
|
||||
v-if="$store.getters.userInfo.roletype === 'Admin' || $store.getters.features.userpublictemplateenabled" >
|
||||
<template #label>
|
||||
<tooltip-label :title="$t('label.ispublic')" :tooltip="apiParams.ispublic.description"/>
|
||||
</template>
|
||||
<a-switch v-model:checked="form.ispublic" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item ref="isfeatured" name="isfeatured" v-if="$store.getters.userInfo.roletype === 'Admin'">
|
||||
<template #label>
|
||||
<tooltip-label :title="$t('label.isfeatured')" :tooltip="apiParams.isfeatured.description"/>
|
||||
</template>
|
||||
<a-switch v-model:checked="form.isfeatured" />
|
||||
</a-form-item>
|
||||
<a-row :gutter="12">
|
||||
<a-col :md="24" :lg="12">
|
||||
<a-form-item ref="isdynamicallyscalable" name="isdynamicallyscalable">
|
||||
<template #label>
|
||||
<tooltip-label :title="$t('label.isdynamicallyscalable')" :tooltip="apiParams.isdynamicallyscalable.description"/>
|
||||
</template>
|
||||
<a-switch v-model:checked="form.isdynamicallyscalable" />
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
ref="ispublic"
|
||||
name="ispublic"
|
||||
v-if="$store.getters.userInfo.roletype === 'Admin' || $store.getters.features.userpublictemplateenabled" >
|
||||
<template #label>
|
||||
<tooltip-label :title="$t('label.ispublic')" :tooltip="apiParams.ispublic.description"/>
|
||||
</template>
|
||||
<a-switch v-model:checked="form.ispublic" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :md="24" :lg="12">
|
||||
<a-form-item ref="isextractable" name="isextractable">
|
||||
<template #label>
|
||||
<tooltip-label :title="$t('label.isextractable')" :tooltip="apiParams.isextractable.description"/>
|
||||
</template>
|
||||
<a-switch v-model:checked="form.isextractable" />
|
||||
</a-form-item>
|
||||
<a-form-item ref="isfeatured" name="isfeatured" v-if="$store.getters.userInfo.roletype === 'Admin'">
|
||||
<template #label>
|
||||
<tooltip-label :title="$t('label.isfeatured')" :tooltip="apiParams.isfeatured.description"/>
|
||||
</template>
|
||||
<a-switch v-model:checked="form.isfeatured" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<div :span="24" class="action-button">
|
||||
<a-button @click="closeAction">{{ $t('label.cancel') }}</a-button>
|
||||
|
|
@ -332,7 +342,8 @@ export default {
|
|||
this.form = reactive({
|
||||
bootable: true,
|
||||
isextractable: false,
|
||||
ispublic: false
|
||||
ispublic: false,
|
||||
isdynamicallyscalable: false
|
||||
})
|
||||
this.rules = reactive({
|
||||
url: [{ required: true, message: this.$t('label.upload.iso.from.local') }],
|
||||
|
|
|
|||
|
|
@ -61,6 +61,12 @@
|
|||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item name="isdynamicallyscalable" ref="isdynamicallyscalable">
|
||||
<template #label>
|
||||
<tooltip-label :title="$t('label.isdynamicallyscalable')" :tooltip="apiParams.isdynamicallyscalable.description"/>
|
||||
</template>
|
||||
<a-switch v-model:checked="form.isdynamicallyscalable" />
|
||||
</a-form-item>
|
||||
|
||||
<a-row :gutter="12">
|
||||
<a-col :md="24" :lg="12">
|
||||
|
|
@ -162,7 +168,7 @@ export default {
|
|||
displaytext: [{ required: true, message: this.$t('message.error.required.input') }],
|
||||
ostypeid: [{ required: true, message: this.$t('message.error.select') }]
|
||||
})
|
||||
const resourceFields = ['name', 'displaytext', 'ostypeid', 'userdataid', 'userdatapolicy']
|
||||
const resourceFields = ['name', 'displaytext', 'ostypeid', 'isdynamicallyscalable', 'userdataid', 'userdatapolicy']
|
||||
|
||||
for (var field of resourceFields) {
|
||||
var fieldValue = this.resource[field]
|
||||
|
|
|
|||
Loading…
Reference in New Issue