mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fixes
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
7f5554b7d7
commit
ca4e9b455b
@ -105,12 +105,11 @@ export default {
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.pair-checkbox {
|
.pair-checkbox {
|
||||||
width: 18vw;
|
width: 180px;
|
||||||
}
|
}
|
||||||
.pair-select-container {
|
.pair-select-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
float: right;
|
||||||
margin-left: 5vw;
|
|
||||||
margin-bottom: -5px;
|
margin-bottom: -5px;
|
||||||
width: 20vw;
|
width: 20vw;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,9 +21,14 @@
|
|||||||
:dataSource="$route.meta.details">
|
:dataSource="$route.meta.details">
|
||||||
<a-list-item slot="renderItem" slot-scope="item" v-if="item in resource">
|
<a-list-item slot="renderItem" slot-scope="item" v-if="item in resource">
|
||||||
<div>
|
<div>
|
||||||
<strong>{{ $t(item) }}</strong>
|
<strong>{{ item === 'service' ? $t('supportedservices') : $t(item) }}</strong>
|
||||||
<br/>
|
<br/>
|
||||||
<div>
|
<div v-if="Array.isArray(resource[item]) && item === 'service'">
|
||||||
|
<div v-for="(item, idx) in resource[item]" :key="idx">
|
||||||
|
{{ item.name }} : {{ item.provider[0].name }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
{{ resource[item] }}
|
{{ resource[item] }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -114,13 +114,6 @@
|
|||||||
<a slot="vpcname" slot-scope="text, record" href="javascript:;">
|
<a slot="vpcname" slot-scope="text, record" href="javascript:;">
|
||||||
<router-link :to="{ path: '/vpc/' + record.vpcid }">{{ text }}</router-link>
|
<router-link :to="{ path: '/vpc/' + record.vpcid }">{{ text }}</router-link>
|
||||||
</a>
|
</a>
|
||||||
<a slot="account" slot-scope="text, record" href="javascript:;">
|
|
||||||
<router-link :to="{ path: '/account/' + record.accountid }" v-if="record.accountid">{{ text }}</router-link>
|
|
||||||
<router-link :to="{ path: '/account', query: { name: record.account, domainid: record.domainid } }" v-else>{{ text }}</router-link>
|
|
||||||
</a>
|
|
||||||
<a slot="domain" slot-scope="text, record" href="javascript:;">
|
|
||||||
<router-link :to="{ path: '/domain/' + record.domainid }">{{ text }}</router-link>
|
|
||||||
</a>
|
|
||||||
<a slot="hostname" slot-scope="text, record" href="javascript:;">
|
<a slot="hostname" slot-scope="text, record" href="javascript:;">
|
||||||
<router-link v-if="record.hostid" :to="{ path: '/host/' + record.hostid }">{{ text }}</router-link>
|
<router-link v-if="record.hostid" :to="{ path: '/host/' + record.hostid }">{{ text }}</router-link>
|
||||||
<router-link v-else-if="record.hostname" :to="{ path: $route.path + '/' + record.id }">{{ text }}</router-link>
|
<router-link v-else-if="record.hostname" :to="{ path: $route.path + '/' + record.id }">{{ text }}</router-link>
|
||||||
@ -132,6 +125,18 @@
|
|||||||
<a slot="podname" slot-scope="text, record" href="javascript:;">
|
<a slot="podname" slot-scope="text, record" href="javascript:;">
|
||||||
<router-link :to="{ path: '/pod/' + record.podid }">{{ text }}</router-link>
|
<router-link :to="{ path: '/pod/' + record.podid }">{{ text }}</router-link>
|
||||||
</a>
|
</a>
|
||||||
|
<a slot="account" slot-scope="text, record" href="javascript:;">
|
||||||
|
<router-link :to="{ path: '/account/' + record.accountid }" v-if="record.accountid">{{ text }}</router-link>
|
||||||
|
<router-link :to="{ path: '/account', query: { name: record.account, domainid: record.domainid } }" v-else>{{ text }}</router-link>
|
||||||
|
</a>
|
||||||
|
<span slot="domain" slot-scope="text, record" href="javascript:;">
|
||||||
|
<router-link v-if="record.domainid && !record.domainid.includes(',')" :to="{ path: '/domain/' + record.domainid }">{{ text }}</router-link>
|
||||||
|
<span v-else>{{ text }}</span>
|
||||||
|
</span>
|
||||||
|
<a slot="zone" slot-scope="text, record" href="javascript:;">
|
||||||
|
<router-link v-if="record.zoneid && !record.zoneid.includes(',')" :to="{ path: '/zone/' + record.zoneid }">{{ text }}</router-link>
|
||||||
|
<span v-else>{{ text }}</span>
|
||||||
|
</a>
|
||||||
<a slot="zonename" slot-scope="text, record" href="javascript:;">
|
<a slot="zonename" slot-scope="text, record" href="javascript:;">
|
||||||
<router-link :to="{ path: '/zone/' + record.zoneid }">{{ text }}</router-link>
|
<router-link :to="{ path: '/zone/' + record.zoneid }">{{ text }}</router-link>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@ -139,7 +139,7 @@ export default {
|
|||||||
permission: ['listNetworkOfferings'],
|
permission: ['listNetworkOfferings'],
|
||||||
params: { isrecursive: 'true' },
|
params: { isrecursive: 'true' },
|
||||||
columns: ['name', 'state', 'guestiptype', 'traffictype', 'networkrate', 'tags', 'domain', 'zone', 'order'],
|
columns: ['name', 'state', 'guestiptype', 'traffictype', 'networkrate', 'tags', 'domain', 'zone', 'order'],
|
||||||
details: ['name', 'id', 'displaytext', 'guestiptype', 'traffictype', 'networkrate', 'ispersistent', 'egressdefaultpolicy', 'availability', 'conservemode', 'specifyvlan', 'specifyipranges', 'supportspublicaccess', 'supportsstrechedl2subnet', 'service', 'tags', 'domain', 'zone'],
|
details: ['name', 'id', 'displaytext', 'guestiptype', 'traffictype', 'networkrate', 'ispersistent', 'egressdefaultpolicy', 'availability', 'conservemode', 'specifyvlan', 'specifyipranges', 'supportspublicaccess', 'supportsstrechedl2subnet', 'tags', 'service', 'domain', 'zone'],
|
||||||
actions: [{
|
actions: [{
|
||||||
api: 'createNetworkOffering',
|
api: 'createNetworkOffering',
|
||||||
icon: 'plus',
|
icon: 'plus',
|
||||||
@ -204,7 +204,7 @@ export default {
|
|||||||
params: { isrecursive: 'true' },
|
params: { isrecursive: 'true' },
|
||||||
resourceType: 'VpcOffering',
|
resourceType: 'VpcOffering',
|
||||||
columns: ['name', 'state', 'displaytext', 'domain', 'zone', 'order'],
|
columns: ['name', 'state', 'displaytext', 'domain', 'zone', 'order'],
|
||||||
details: ['name', 'id', 'displaytext', 'distributedvpcrouter', 'service', 'tags', 'domain', 'zone', 'created'],
|
details: ['name', 'id', 'displaytext', 'distributedvpcrouter', 'tags', 'service', 'domain', 'zone', 'created'],
|
||||||
related: [{
|
related: [{
|
||||||
name: 'vpc',
|
name: 'vpc',
|
||||||
title: 'VPCs',
|
title: 'VPCs',
|
||||||
|
|||||||
@ -103,7 +103,7 @@
|
|||||||
"broadcasturi": "Broadcast URI",
|
"broadcasturi": "Broadcast URI",
|
||||||
"bucket": "Bucket",
|
"bucket": "Bucket",
|
||||||
"bypassVlanOverlapCheck": "Bypass VLAN id/range overlap",
|
"bypassVlanOverlapCheck": "Bypass VLAN id/range overlap",
|
||||||
"cacheMode": "Write-cache Type",
|
"cachemode": "Write-cache Type",
|
||||||
"capacity": "Capacity",
|
"capacity": "Capacity",
|
||||||
"capacityBytes": "Capacity Bytes",
|
"capacityBytes": "Capacity Bytes",
|
||||||
"capacityIops": "Capacity IOPS",
|
"capacityIops": "Capacity IOPS",
|
||||||
|
|||||||
@ -231,9 +231,6 @@ export default {
|
|||||||
api('queryAsyncJobResult', { jobid: jobId }).then(json => {
|
api('queryAsyncJobResult', { jobid: jobId }).then(json => {
|
||||||
const result = json.queryasyncjobresultresponse
|
const result = json.queryasyncjobresultresponse
|
||||||
if (result.jobstatus === 1 && this.maxCerts === count) {
|
if (result.jobstatus === 1 && this.maxCerts === count) {
|
||||||
console.log(result)
|
|
||||||
console.log(this.maxCerts)
|
|
||||||
console.log(count)
|
|
||||||
this.$message.success('Certificate Uploaded: ' + result.jobresult.customcertificate.message)
|
this.$message.success('Certificate Uploaded: ' + result.jobresult.customcertificate.message)
|
||||||
this.$notification.success({
|
this.$notification.success({
|
||||||
message: 'Certificate Uploaded',
|
message: 'Certificate Uploaded',
|
||||||
|
|||||||
@ -85,7 +85,7 @@
|
|||||||
</a-radio-button>
|
</a-radio-button>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :label="$t('cacheMode')">
|
<a-form-item :label="$t('cachemode')">
|
||||||
<a-radio-group
|
<a-radio-group
|
||||||
v-decorator="['cachemode', {
|
v-decorator="['cachemode', {
|
||||||
initialValue: this.cacheMode
|
initialValue: this.cacheMode
|
||||||
@ -386,10 +386,10 @@
|
|||||||
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||||
}"
|
}"
|
||||||
:loading="storageTagLoading"
|
:loading="storageTagLoading"
|
||||||
:placeholder="this.$t('tags')"
|
:placeholder="$t('storagetags')"
|
||||||
v-if="this.isAdmin()">
|
v-if="this.isAdmin()">
|
||||||
<a-select-option v-for="(opt) in this.storageTags" :key="opt.name">
|
<a-select-option v-for="opt in storageTags" :key="opt">
|
||||||
{{ opt.name || opt.description }}
|
{{ opt }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@ -538,7 +538,7 @@ export default {
|
|||||||
isSystem: false,
|
isSystem: false,
|
||||||
storageType: 'shared',
|
storageType: 'shared',
|
||||||
provisioningType: 'thin',
|
provisioningType: 'thin',
|
||||||
cacheMode: 'node',
|
cacheMode: 'none',
|
||||||
offeringType: 'fixed',
|
offeringType: 'fixed',
|
||||||
qosType: '',
|
qosType: '',
|
||||||
isCustomizedDiskIops: false,
|
isCustomizedDiskIops: false,
|
||||||
@ -638,14 +638,12 @@ export default {
|
|||||||
const params = {}
|
const params = {}
|
||||||
params.listAll = true
|
params.listAll = true
|
||||||
this.storageTagLoading = true
|
this.storageTagLoading = true
|
||||||
|
this.storageTags = []
|
||||||
api('listStorageTags', params).then(json => {
|
api('listStorageTags', params).then(json => {
|
||||||
const tags = json.liststoragetagsresponse.storagetag
|
const tags = json.liststoragetagsresponse.storagetag || []
|
||||||
if (this.arrayHasItems(tags)) {
|
for (const tag of tags) {
|
||||||
for (var i in tags) {
|
if (!this.storageTags.includes(tag.name)) {
|
||||||
var tag = {}
|
this.storageTags.push(tag.name)
|
||||||
tag.id = tags[i].name
|
|
||||||
tag.name = tags[i].name
|
|
||||||
this.storageTags.push(tag)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@ -857,7 +855,7 @@ export default {
|
|||||||
.form-layout {
|
.form-layout {
|
||||||
width: 80vw;
|
width: 80vw;
|
||||||
@media (min-width: 800px) {
|
@media (min-width: 800px) {
|
||||||
width: 400px;
|
width: 500px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -421,7 +421,6 @@ export default {
|
|||||||
if (err) {
|
if (err) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log(values)
|
|
||||||
var params = {
|
var params = {
|
||||||
isMirrored: false,
|
isMirrored: false,
|
||||||
name: values.name,
|
name: values.name,
|
||||||
|
|||||||
@ -417,7 +417,7 @@ export default {
|
|||||||
this.zones = [
|
this.zones = [
|
||||||
{
|
{
|
||||||
id: null,
|
id: null,
|
||||||
name: this.$t('all.zone')
|
name: this.$t('label.all.zone')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -593,7 +593,6 @@ export default {
|
|||||||
self.supportedServices[index] = svc
|
self.supportedServices[index] = svc
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log(this.supportedServices)
|
|
||||||
},
|
},
|
||||||
handleSupportedServiceChange (service, checked, provider) {
|
handleSupportedServiceChange (service, checked, provider) {
|
||||||
if (service === 'SourceNat') {
|
if (service === 'SourceNat') {
|
||||||
@ -652,7 +651,6 @@ export default {
|
|||||||
if (err) {
|
if (err) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log(values)
|
|
||||||
var params = {}
|
var params = {}
|
||||||
|
|
||||||
var self = this
|
var self = this
|
||||||
|
|||||||
@ -94,9 +94,6 @@ export default {
|
|||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
log (o) {
|
|
||||||
console.log(o)
|
|
||||||
},
|
|
||||||
fetchData () {
|
fetchData () {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
api('listZones').then(json => {
|
api('listZones').then(json => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user