ui: add action syncStoragePool (#5098)

Added action in UI for syncStoragePool API for DatastoreCluster type primary storages.

Fixes #5086

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2021-06-11 20:07:07 +05:30 committed by GitHub
parent 12b2e80d82
commit 9dd0acf8c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -2063,6 +2063,7 @@
"label.supportsstrechedl2subnet": "Supports Streched L2 Subnet", "label.supportsstrechedl2subnet": "Supports Streched L2 Subnet",
"label.suspend.project": "Suspend Project", "label.suspend.project": "Suspend Project",
"label.switch.type": "Switch Type", "label.switch.type": "Switch Type",
"label.sync.storage": "Sync Storage Pool",
"label.system.capacity": "System Capacity", "label.system.capacity": "System Capacity",
"label.system.offering": "System Offering", "label.system.offering": "System Offering",
"label.system.offering.for.router": "System Offering for Router", "label.system.offering.for.router": "System Offering for Router",
@ -2627,6 +2628,7 @@
"message.confirm.start.lb.vm": "Please confirm you want to start LB VM", "message.confirm.start.lb.vm": "Please confirm you want to start LB VM",
"message.confirm.stop.kubernetes.cluster": "Please confirm that you want to stop this Kubernetes cluster.", "message.confirm.stop.kubernetes.cluster": "Please confirm that you want to stop this Kubernetes cluster.",
"message.confirm.stop.lb.vm": "Please confirm you want to stop LB VM", "message.confirm.stop.lb.vm": "Please confirm you want to stop LB VM",
"message.confirm.sync.storage": "Please confirm you want to sync the storage pool",
"message.confirm.upgrade.router.newer.template": "Please confirm that you want to upgrade router to use newer template", "message.confirm.upgrade.router.newer.template": "Please confirm that you want to upgrade router to use newer template",
"message.confirm.upgrade.routers.account.newtemplate": "Please confirm that you want to upgrade all routers in this account to use newer template", "message.confirm.upgrade.routers.account.newtemplate": "Please confirm that you want to upgrade all routers in this account to use newer template",
"message.confirm.upgrade.routers.cluster.newtemplate": "Please confirm that you want to upgrade all routers in this cluster to use newer template", "message.confirm.upgrade.routers.cluster.newtemplate": "Please confirm that you want to upgrade all routers in this cluster to use newer template",

View File

@ -81,6 +81,14 @@ export default {
defaultArgs: { enabled: true }, defaultArgs: { enabled: true },
show: (record) => { return record.state === 'Disabled' } show: (record) => { return record.state === 'Disabled' }
}, },
{
api: 'syncStoragePool',
icon: 'sync',
label: 'label.sync.storage',
message: 'message.confirm.sync.storage',
dataView: true,
show: (record) => { return record.state === 'Up' && record.type === 'DatastoreCluster' }
},
{ {
api: 'enableStorageMaintenance', api: 'enableStorageMaintenance',
icon: 'plus-square', icon: 'plus-square',