Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ui/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2063,6 +2063,7 @@
"label.supportsstrechedl2subnet": "Supports Streched L2 Subnet",
"label.suspend.project": "Suspend Project",
"label.switch.type": "Switch Type",
"label.sync.storage": "Sync Storage Pool",
"label.system.capacity": "System Capacity",
"label.system.offering": "System Offering",
"label.system.offering.for.router": "System Offering for Router",
Expand Down Expand Up @@ -2627,6 +2628,7 @@
"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.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.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",
Expand Down
8 changes: 8 additions & 0 deletions ui/src/config/section/infra/primaryStorages.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ export default {
defaultArgs: { enabled: true },
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',
icon: 'plus-square',
Expand Down