mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-13 09:02:26 +01:00
UI(vue) + extras: fix bugs/spelling and standardize (#12073)
This commit is contained in:
parent
cfe96026dc
commit
78f9e6584b
2
.github/linters/codespell.txt
vendored
2
.github/linters/codespell.txt
vendored
@ -255,7 +255,6 @@ ingore
|
||||
initalize
|
||||
initator
|
||||
inspite
|
||||
instace
|
||||
instal
|
||||
instnace
|
||||
intefaces
|
||||
@ -376,7 +375,6 @@ renabling
|
||||
reponse
|
||||
reqest
|
||||
reqiured
|
||||
requried
|
||||
reserv
|
||||
reserverd
|
||||
reseted
|
||||
|
||||
@ -26,7 +26,7 @@ using System.Threading.Tasks;
|
||||
// C# versions of certain CloudStack types to simplify JSON serialisation.
|
||||
// Limit to the number of types, because they are written and maintained manually.
|
||||
// JsonProperty used to identify property name when serialised, which allows
|
||||
// later adoption of C# naming conventions if requried.
|
||||
// later adoption of C# naming conventions if required.
|
||||
namespace HypervResource
|
||||
{
|
||||
public class PrimaryDataStoreTO
|
||||
|
||||
@ -458,7 +458,7 @@ public class ApiResponseHelperTest {
|
||||
}
|
||||
}
|
||||
|
||||
private UnmanagedInstanceTO getUnmanagedInstaceForTests() {
|
||||
private UnmanagedInstanceTO getUnmanagedInstanceForTests() {
|
||||
UnmanagedInstanceTO instance = Mockito.mock(UnmanagedInstanceTO.class);
|
||||
Mockito.when(instance.getPowerState()).thenReturn(UnmanagedInstanceTO.PowerState.PowerOff);
|
||||
Mockito.when(instance.getClusterName()).thenReturn("CL1");
|
||||
@ -477,7 +477,7 @@ public class ApiResponseHelperTest {
|
||||
|
||||
@Test
|
||||
public void testCreateUnmanagedInstanceResponseVmwareDcVms() {
|
||||
UnmanagedInstanceTO instance = getUnmanagedInstaceForTests();
|
||||
UnmanagedInstanceTO instance = getUnmanagedInstanceForTests();
|
||||
UnmanagedInstanceResponse response = apiResponseHelper.createUnmanagedInstanceResponse(instance, null, null);
|
||||
Assert.assertEquals(1, response.getDisks().size());
|
||||
Assert.assertEquals(1, response.getNics().size());
|
||||
|
||||
@ -802,7 +802,7 @@ class TestNetScalerSharedMode(cloudstackTestCase):
|
||||
|
||||
# Validate the following
|
||||
# 1. Add another netscaler device and spawn a new VM again
|
||||
# 2. VM deployement should be successful
|
||||
# 2. VM deployment should be successful
|
||||
|
||||
self.debug("Adding another netscaler device: %s" %
|
||||
self.services["netscaler_2"]["ipaddress"])
|
||||
@ -1672,7 +1672,7 @@ class TestNwOffSToDUpgrade(cloudstackTestCase):
|
||||
# LB rules
|
||||
# 5. Deploy instance with dedicated network offering in account 3.
|
||||
# Create Lb rules.
|
||||
# 6. Configure another instace of netscaler in dedicated mode
|
||||
# 6. Configure another instance of netscaler in dedicated mode
|
||||
# 7. upgrade networkj for user 1 to dedicated network offering.
|
||||
# Create LB rules. LB rule creation should be successful
|
||||
|
||||
@ -2063,7 +2063,7 @@ class TestNwOffDToSUpgrade(cloudstackTestCase):
|
||||
# LB rules
|
||||
# 5. Deploy instance with dedicated network offering in account 3.
|
||||
# Create Lb rules.
|
||||
# 6. Configure another instace of netscaler in dedicated mode
|
||||
# 6. Configure another instance of netscaler in dedicated mode
|
||||
# 7. upgrade networkj for user 1 to dedicated network offering.
|
||||
# Create LB rules. LB rule creation should be successful
|
||||
|
||||
|
||||
@ -1274,7 +1274,7 @@ class TestVMLifeCycleBothIsolated(cloudstackTestCase):
|
||||
except Exception as e:
|
||||
self.fail("Failed to deploy the virtual instance: %s" % e)
|
||||
|
||||
self.debug("Verify the deployment of virtual instace")
|
||||
self.debug("Verify the deployment of virtual instance")
|
||||
vms = VirtualMachine.list(
|
||||
self.apiclient,
|
||||
id=vm.id,
|
||||
|
||||
@ -67,7 +67,7 @@ export default {
|
||||
props: {
|
||||
error: {
|
||||
type: Boolean,
|
||||
requried: true
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
||||
@ -1589,7 +1589,7 @@ export default {
|
||||
})
|
||||
this.fetchBootTypes()
|
||||
this.fetchBootModes()
|
||||
this.fetchInstaceGroups()
|
||||
this.fetchInstanceGroups()
|
||||
this.fetchIoPolicyTypes()
|
||||
nextTick().then(() => {
|
||||
['name', 'keyboard', 'boottype', 'bootmode', 'iothreadsenabled', 'iodriverpolicy', 'nicmultiqueuenumber', 'nicpackedvirtqueues'].forEach(this.fillValue)
|
||||
@ -1640,7 +1640,7 @@ export default {
|
||||
{ id: 'storage_specific', description: 'storage_specific' }
|
||||
]
|
||||
},
|
||||
fetchInstaceGroups () {
|
||||
fetchInstanceGroups () {
|
||||
this.options.instanceGroups = []
|
||||
getAPI('listInstanceGroups', {
|
||||
account: this.$store.getters.project?.id ? null : this.$store.getters.userInfo.account,
|
||||
@ -2467,12 +2467,12 @@ export default {
|
||||
configuration.cpunumber = 0
|
||||
configuration.cpuspeed = 0
|
||||
configuration.memory = 0
|
||||
for (var harwareItem of configuration.hardwareItems) {
|
||||
if (harwareItem.resourceType === 'Processor') {
|
||||
configuration.cpunumber = harwareItem.virtualQuantity
|
||||
configuration.cpuspeed = harwareItem.reservation
|
||||
} else if (harwareItem.resourceType === 'Memory') {
|
||||
configuration.memory = harwareItem.virtualQuantity
|
||||
for (var hardwareItem of configuration.hardwareItems) {
|
||||
if (hardwareItem.resourceType === 'Processor') {
|
||||
configuration.cpunumber = hardwareItem.virtualQuantity
|
||||
configuration.cpuspeed = hardwareItem.reservation
|
||||
} else if (hardwareItem.resourceType === 'Memory') {
|
||||
configuration.memory = hardwareItem.virtualQuantity
|
||||
}
|
||||
}
|
||||
configurations.push(configuration)
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
v-if="taggedUsage[item]"
|
||||
class="list-item__collapse"
|
||||
@change="handleCollapseChange(item)">
|
||||
<a-collapse-panel key="1" :header="collpaseActive[item] ? $t('label.tagged.limits') : $t('label.tagged.limits') + ' - ' + this.tagData[item].tagsasstring">
|
||||
<a-collapse-panel key="1" :header="collapseActive[item] ? $t('label.tagged.limits') : $t('label.tagged.limits') + ' - ' + this.tagData[item].tagsasstring">
|
||||
<a-list
|
||||
size="small"
|
||||
:loading="loading"
|
||||
@ -96,7 +96,7 @@ export default {
|
||||
],
|
||||
taggedUsage: {},
|
||||
tagData: {},
|
||||
collpaseActive: {}
|
||||
collapseActive: {}
|
||||
}
|
||||
},
|
||||
created () {
|
||||
@ -168,11 +168,11 @@ export default {
|
||||
}
|
||||
},
|
||||
handleCollapseChange (type) {
|
||||
if (this.collpaseActive[type]) {
|
||||
this.collpaseActive[type] = null
|
||||
if (this.collapseActive[type]) {
|
||||
this.collapseActive[type] = null
|
||||
return
|
||||
}
|
||||
this.collpaseActive[type] = true
|
||||
this.collapseActive[type] = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
v-if="item.taggedresource && item.taggedresource.length > 0"
|
||||
class="tagged-limit-collapse"
|
||||
@change="handleCollapseChange(item.resourcetypename)">
|
||||
<a-collapse-panel key="1" :header="collpaseActive[item.resourcetypename] ? $t('label.tagged.limits') : $t('label.tagged.limits') + ' - ' + item.tagsasstring">
|
||||
<a-collapse-panel key="1" :header="collapseActive[item.resourcetypename] ? $t('label.tagged.limits') : $t('label.tagged.limits') + ' - ' + item.tagsasstring">
|
||||
<div v-for="(subItem, subItemIndex) in item.taggedresource" :key="subItemIndex">
|
||||
<a-form-item
|
||||
:v-bind="subItem.resourcetypename"
|
||||
@ -94,7 +94,7 @@ export default {
|
||||
return {
|
||||
formLoading: false,
|
||||
dataResource: [],
|
||||
collpaseActive: {},
|
||||
collapseActive: {},
|
||||
resourceTypeIdNames: {}
|
||||
}
|
||||
},
|
||||
@ -259,11 +259,11 @@ export default {
|
||||
})
|
||||
},
|
||||
handleCollapseChange (type) {
|
||||
if (this.collpaseActive[type]) {
|
||||
this.collpaseActive[type] = null
|
||||
if (this.collapseActive[type]) {
|
||||
this.collapseActive[type] = null
|
||||
return
|
||||
}
|
||||
this.collpaseActive[type] = true
|
||||
this.collapseActive[type] = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -126,7 +126,7 @@ export default {
|
||||
collapseKey: undefined,
|
||||
loading: false,
|
||||
testDeliveryInterval: null,
|
||||
testDeliveryIntervalCouter: 0
|
||||
testDeliveryIntervalCounter: 0
|
||||
}
|
||||
},
|
||||
beforeCreate () {
|
||||
@ -154,8 +154,8 @@ export default {
|
||||
return (duration > 0 ? duration / 1000.0 : 0) + ''
|
||||
},
|
||||
computedOverlayStyle () {
|
||||
var opacity = this.testDeliveryIntervalCouter <= 10.0 ? 0 : 0.3
|
||||
var width = this.testDeliveryIntervalCouter
|
||||
var opacity = this.testDeliveryIntervalCounter <= 10.0 ? 0 : 0.3
|
||||
var width = this.testDeliveryIntervalCounter
|
||||
return 'opacity: ' + opacity + '; width: ' + width + '%;'
|
||||
}
|
||||
},
|
||||
@ -168,7 +168,7 @@ export default {
|
||||
if (this.testDeliveryInterval) {
|
||||
clearInterval(this.testDeliveryInterval)
|
||||
}
|
||||
this.testDeliveryIntervalCouter = 0
|
||||
this.testDeliveryIntervalCounter = 0
|
||||
},
|
||||
testWebhookDelivery () {
|
||||
this.resetTestDeliveryInterval()
|
||||
@ -223,8 +223,8 @@ export default {
|
||||
this.resetTestDeliveryInterval()
|
||||
return
|
||||
}
|
||||
this.testDeliveryIntervalCouter = this.testDeliveryIntervalCouter + 1
|
||||
if (this.testDeliveryIntervalCouter >= 100) {
|
||||
this.testDeliveryIntervalCounter = this.testDeliveryIntervalCounter + 1
|
||||
if (this.testDeliveryIntervalCounter >= 100) {
|
||||
this.executeTestWebhookDeliveryOrReset()
|
||||
}
|
||||
}, this.timedDeliveryWait / 100)
|
||||
|
||||
@ -85,10 +85,10 @@ export default {
|
||||
})
|
||||
},
|
||||
fetchData () {
|
||||
const isoFiters = ['featured', 'community', 'selfexecutable']
|
||||
const isoFilters = ['featured', 'community', 'selfexecutable']
|
||||
this.loading = true
|
||||
const promises = []
|
||||
isoFiters.forEach((filter) => {
|
||||
isoFilters.forEach((filter) => {
|
||||
promises.push(this.fetchIsos(filter))
|
||||
})
|
||||
Promise.all(promises).then(() => {
|
||||
|
||||
@ -3172,12 +3172,12 @@ export default {
|
||||
configuration.cpunumber = 0
|
||||
configuration.cpuspeed = 0
|
||||
configuration.memory = 0
|
||||
for (var harwareItem of configuration.hardwareItems) {
|
||||
if (harwareItem.resourceType === 'Processor') {
|
||||
configuration.cpunumber = harwareItem.virtualQuantity
|
||||
configuration.cpuspeed = harwareItem.reservation
|
||||
} else if (harwareItem.resourceType === 'Memory') {
|
||||
configuration.memory = harwareItem.virtualQuantity
|
||||
for (var hardwareItem of configuration.hardwareItems) {
|
||||
if (hardwareItem.resourceType === 'Processor') {
|
||||
configuration.cpunumber = hardwareItem.virtualQuantity
|
||||
configuration.cpuspeed = hardwareItem.reservation
|
||||
} else if (hardwareItem.resourceType === 'Memory') {
|
||||
configuration.memory = hardwareItem.virtualQuantity
|
||||
}
|
||||
}
|
||||
configurations.push(configuration)
|
||||
|
||||
@ -1920,7 +1920,7 @@ export default {
|
||||
}
|
||||
this.fetchBootTypes()
|
||||
this.fetchBootModes()
|
||||
this.fetchInstaceGroups()
|
||||
this.fetchInstanceGroups()
|
||||
this.fetchIoPolicyTypes()
|
||||
nextTick().then(() => {
|
||||
['name', 'keyboard', 'boottype', 'bootmode', 'userdata', 'iothreadsenabled', 'iodriverpolicy', 'nicmultiqueuenumber', 'nicpackedvirtqueues'].forEach(this.fillValue)
|
||||
@ -1976,7 +1976,7 @@ export default {
|
||||
{ id: 'storage_specific', description: 'storage_specific' }
|
||||
]
|
||||
},
|
||||
fetchInstaceGroups () {
|
||||
fetchInstanceGroups () {
|
||||
this.options.instanceGroups = []
|
||||
getAPI('listInstanceGroups', {
|
||||
account: this.$store.getters.project?.id ? null : this.$store.getters.userInfo.account,
|
||||
@ -3224,12 +3224,12 @@ export default {
|
||||
configuration.cpunumber = 0
|
||||
configuration.cpuspeed = 0
|
||||
configuration.memory = 0
|
||||
for (var harwareItem of configuration.hardwareItems) {
|
||||
if (harwareItem.resourceType === 'Processor') {
|
||||
configuration.cpunumber = harwareItem.virtualQuantity
|
||||
configuration.cpuspeed = harwareItem.reservation
|
||||
} else if (harwareItem.resourceType === 'Memory') {
|
||||
configuration.memory = harwareItem.virtualQuantity
|
||||
for (var hardwareItem of configuration.hardwareItems) {
|
||||
if (hardwareItem.resourceType === 'Processor') {
|
||||
configuration.cpunumber = hardwareItem.virtualQuantity
|
||||
configuration.cpuspeed = hardwareItem.reservation
|
||||
} else if (hardwareItem.resourceType === 'Memory') {
|
||||
configuration.memory = hardwareItem.virtualQuantity
|
||||
}
|
||||
}
|
||||
configurations.push(configuration)
|
||||
|
||||
@ -1761,7 +1761,7 @@ export default {
|
||||
}
|
||||
this.fetchBootTypes()
|
||||
this.fetchBootModes()
|
||||
this.fetchInstaceGroups()
|
||||
this.fetchInstanceGroups()
|
||||
this.fetchIoPolicyTypes()
|
||||
nextTick().then(() => {
|
||||
['name', 'keyboard', 'boottype', 'bootmode', 'userdata', 'iothreadsenabled', 'iodriverpolicy', 'nicmultiqueuenumber', 'nicpackedvirtqueues'].forEach(this.fillValue)
|
||||
@ -1816,7 +1816,7 @@ export default {
|
||||
{ id: 'storage_specific', description: 'storage_specific' }
|
||||
]
|
||||
},
|
||||
fetchInstaceGroups () {
|
||||
fetchInstanceGroups () {
|
||||
this.options.instanceGroups = []
|
||||
getAPI('listInstanceGroups', {
|
||||
account: this.$store.getters.userInfo.account,
|
||||
@ -2767,12 +2767,12 @@ export default {
|
||||
configuration.cpunumber = 0
|
||||
configuration.cpuspeed = 0
|
||||
configuration.memory = 0
|
||||
for (var harwareItem of configuration.hardwareItems) {
|
||||
if (harwareItem.resourceType === 'Processor') {
|
||||
configuration.cpunumber = harwareItem.virtualQuantity
|
||||
configuration.cpuspeed = harwareItem.reservation
|
||||
} else if (harwareItem.resourceType === 'Memory') {
|
||||
configuration.memory = harwareItem.virtualQuantity
|
||||
for (var hardwareItem of configuration.hardwareItems) {
|
||||
if (hardwareItem.resourceType === 'Processor') {
|
||||
configuration.cpunumber = hardwareItem.virtualQuantity
|
||||
configuration.cpuspeed = hardwareItem.reservation
|
||||
} else if (hardwareItem.resourceType === 'Memory') {
|
||||
configuration.memory = hardwareItem.virtualQuantity
|
||||
}
|
||||
}
|
||||
configurations.push(configuration)
|
||||
|
||||
@ -255,7 +255,7 @@ export default {
|
||||
this.fetchZoneDetails()
|
||||
this.fetchSecurityGroups()
|
||||
this.fetchOsTypes()
|
||||
this.fetchInstaceGroups()
|
||||
this.fetchInstanceGroups()
|
||||
this.fetchServiceOfferingData()
|
||||
this.fetchTemplateData()
|
||||
this.fetchUserData()
|
||||
@ -335,7 +335,7 @@ export default {
|
||||
this.$notifyError(error)
|
||||
}).finally(() => { this.osTypes.loading = false })
|
||||
},
|
||||
fetchInstaceGroups () {
|
||||
fetchInstanceGroups () {
|
||||
this.groups.loading = true
|
||||
this.groups.opts = []
|
||||
const params = {
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
@change="handleGuestOsCategoryChange">
|
||||
<template #radio-option="{ item }">
|
||||
<div class="radio-option">
|
||||
<div class="radio-opion__icon">
|
||||
<div class="radio-option__icon">
|
||||
<resource-icon v-if="item.icon && item.icon.base64image" :image="item.icon.base64image" size="os" style="margin-bottom: 2px; margin-left: 1px" />
|
||||
<font-awesome-icon v-else-if="['-1', '0'].includes(item.id)" :icon="['fas', item.id === '0' ? 'user' : 'images']" size="2x" :style="categoryFontAwesomeIconStyle" />
|
||||
<os-logo v-else size="2x" :os-name="item.name" />
|
||||
@ -367,7 +367,7 @@ export default {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.radio-opion__icon {
|
||||
.radio-option__icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
object-fit: contain;
|
||||
|
||||
@ -47,8 +47,8 @@
|
||||
<tooltip-label :title="$t('label.path')" :tooltip="apiParams.path.description"/>
|
||||
</template>
|
||||
<div class="path-input-container">
|
||||
<span v-if="!!safeName" :title="extenstionBasePath" class="path-input-base">
|
||||
{{ extenstionBasePath }}
|
||||
<span v-if="!!safeName" :title="extensionBasePath" class="path-input-base">
|
||||
{{ extensionBasePath }}
|
||||
</span>
|
||||
<a-input
|
||||
v-model:value="form.path"
|
||||
@ -137,7 +137,7 @@ export default {
|
||||
}
|
||||
return value.replace(/[^a-zA-Z0-9._-]/g, '_').toLowerCase()
|
||||
},
|
||||
extenstionBasePath () {
|
||||
extensionBasePath () {
|
||||
return (this.$store.getters.features.extensionspath || '[EXTENSIONS_PATH]') + '/' + this.safeName + '/'
|
||||
}
|
||||
},
|
||||
|
||||
@ -138,7 +138,7 @@ export default {
|
||||
this.roleTypes = this.$fetchCustomActionRoleTypes()
|
||||
},
|
||||
methods: {
|
||||
fixParamatersOptions (params) {
|
||||
fixParametersOptions (params) {
|
||||
if (!params) {
|
||||
return
|
||||
}
|
||||
@ -153,7 +153,7 @@ export default {
|
||||
initForm () {
|
||||
this.formRef = ref()
|
||||
const formData = {
|
||||
parameters: this.fixParamatersOptions(this.resource.parameters)
|
||||
parameters: this.fixParametersOptions(this.resource.parameters)
|
||||
}
|
||||
const keys = ['description', 'allowedroletypes', 'successmessage', 'errormessage', 'details', 'timeout']
|
||||
for (const key of keys) {
|
||||
|
||||
@ -202,7 +202,7 @@ export default {
|
||||
this.$emit('refresh-data')
|
||||
this.$notification.success({
|
||||
message: 'Create Role',
|
||||
description: 'Sucessfully created role ' + params.name
|
||||
description: 'Successfully created role ' + params.name
|
||||
})
|
||||
}
|
||||
this.closeAction()
|
||||
|
||||
@ -213,7 +213,7 @@ export default {
|
||||
this.$emit('refresh-data')
|
||||
this.$notification.success({
|
||||
message: 'Import Role',
|
||||
description: 'Sucessfully imported role ' + params.name
|
||||
description: 'Successfully imported role ' + params.name
|
||||
})
|
||||
}
|
||||
this.closeAction()
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
v-if="item.tagged"
|
||||
class="list-item__collapse"
|
||||
@change="handleCollapseChange(item.type)">
|
||||
<a-collapse-panel key="1" :header="$t('label.tagged') + ' ' + returnCapacityTitle(item.type) + (collpaseActive[item.type] ? '' : ' - ' + item.tagsasstring)">
|
||||
<a-collapse-panel key="1" :header="$t('label.tagged') + ' ' + returnCapacityTitle(item.type) + (collapseActive[item.type] ? '' : ' - ' + item.tagsasstring)">
|
||||
<a-list
|
||||
size="small"
|
||||
:dataSource="item.tagged" >
|
||||
@ -90,7 +90,7 @@ export default {
|
||||
return {
|
||||
fetchLoading: false,
|
||||
resourcesList: [],
|
||||
collpaseActive: {}
|
||||
collapseActive: {}
|
||||
}
|
||||
},
|
||||
created () {
|
||||
@ -181,11 +181,11 @@ export default {
|
||||
}
|
||||
},
|
||||
handleCollapseChange (type) {
|
||||
if (this.collpaseActive[type]) {
|
||||
this.collpaseActive[type] = null
|
||||
if (this.collapseActive[type]) {
|
||||
this.collapseActive[type] = null
|
||||
return
|
||||
}
|
||||
this.collpaseActive[type] = true
|
||||
this.collapseActive[type] = true
|
||||
var typeItems = this.resourcesList.filter(x => x.type === type)
|
||||
typeItems.forEach(resource => {
|
||||
this.animatePercentVals(resource.tagged)
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
banner
|
||||
:message="$t('message.action.router.health.checks.disabled.warning')" />
|
||||
<div v-else>
|
||||
<a-button :disabled="!('getRouterHealthCheckResults' in $store.getters.apis)" type="primary" style="width: 100%; margin-bottom: 15px" @click="showGetHelathCheck">
|
||||
<a-button :disabled="!('getRouterHealthCheckResults' in $store.getters.apis)" type="primary" style="width: 100%; margin-bottom: 15px" @click="showGetHealthCheck">
|
||||
<template #icon><play-circle-outlined /></template>
|
||||
{{ $t('label.action.router.health.checks') }}
|
||||
</a-button>
|
||||
@ -158,7 +158,7 @@ export default {
|
||||
}
|
||||
this.checkConfigurationAndGetHealthChecks()
|
||||
},
|
||||
showGetHelathCheck () {
|
||||
showGetHealthCheck () {
|
||||
this.showGetHealthChecksForm = true
|
||||
},
|
||||
onCloseGetHealthChecksForm () {
|
||||
|
||||
@ -1609,7 +1609,7 @@ export default {
|
||||
|
||||
try {
|
||||
if (!this.stepData.stepMove.includes('createStoragePool')) {
|
||||
this.stepData.primaryStorageRetunred = await this.createStoragePool(params)
|
||||
this.stepData.primaryStorageReturned = await this.createStoragePool(params)
|
||||
this.stepData.stepMove.push('createStoragePool')
|
||||
}
|
||||
await this.stepAddSecondaryStorage()
|
||||
|
||||
@ -201,7 +201,7 @@ export default {
|
||||
if (successful.length > 0) {
|
||||
this.$notification.success({
|
||||
message: this.$t('label.register.template'),
|
||||
description: 'Succesfully registered templates: ' + successful.map(r => r.name).join(', ')
|
||||
description: 'Successfully registered templates: ' + successful.map(r => r.name).join(', ')
|
||||
})
|
||||
|
||||
successful.forEach(r => {
|
||||
|
||||
@ -714,7 +714,7 @@ export default {
|
||||
domainLoading: false,
|
||||
zones: [],
|
||||
zoneLoading: false,
|
||||
selectedDeployementPlanner: null,
|
||||
selectedDeploymentPlanner: null,
|
||||
storagePolicies: null,
|
||||
storageTags: [],
|
||||
storageTagLoading: false,
|
||||
@ -1021,9 +1021,9 @@ export default {
|
||||
this.qosType = val
|
||||
},
|
||||
handleDeploymentPlannerChange (planner) {
|
||||
this.selectedDeployementPlanner = planner
|
||||
this.selectedDeploymentPlanner = planner
|
||||
this.plannerModeVisible = false
|
||||
if (this.selectedDeployementPlanner === 'ImplicitDedicationPlanner') {
|
||||
if (this.selectedDeploymentPlanner === 'ImplicitDedicationPlanner') {
|
||||
this.plannerModeVisible = isAdmin()
|
||||
}
|
||||
},
|
||||
|
||||
@ -144,7 +144,7 @@ export default {
|
||||
createModalVisible: false,
|
||||
editModalVisible: false,
|
||||
selectedRole: null,
|
||||
projectPermisssions: [],
|
||||
projectPermissions: [],
|
||||
customStyle: 'margin-bottom: 0; border: none'
|
||||
}
|
||||
},
|
||||
|
||||
@ -95,7 +95,7 @@ export default {
|
||||
loading: false,
|
||||
configLoading: false,
|
||||
serviceofferings: [],
|
||||
serviceofferingLoding: false
|
||||
serviceofferingLoading: false
|
||||
}
|
||||
},
|
||||
beforeCreate () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user