mirror of https://github.com/apache/cloudstack.git
Hide option to upload volume when user does not have permission (#7427)
Co-authored-by: Gabriel <gabriel.fernandes@scclouds.com.br>
This commit is contained in:
parent
8e7c1f7bd7
commit
957c0a5193
|
|
@ -93,6 +93,7 @@ export default {
|
|||
api: 'registerTemplate',
|
||||
icon: 'cloud-upload-outlined',
|
||||
label: 'label.upload.template.from.local',
|
||||
show: () => { return 'getUploadParamsForTemplate' in store.getters.apis },
|
||||
docHelp: 'adminguide/templates.html#uploading-templates-and-isos-from-a-local-computer',
|
||||
listView: true,
|
||||
popup: true,
|
||||
|
|
@ -233,6 +234,7 @@ export default {
|
|||
api: 'registerIso',
|
||||
icon: 'cloud-upload-outlined',
|
||||
label: 'label.upload.iso.from.local',
|
||||
show: () => { return 'getUploadParamsForIso' in store.getters.apis },
|
||||
docHelp: 'adminguide/templates.html#id10',
|
||||
listView: true,
|
||||
popup: true,
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ export default {
|
|||
icon: 'cloud-upload-outlined',
|
||||
docHelp: 'adminguide/storage.html#uploading-an-existing-volume-to-a-virtual-machine',
|
||||
label: 'label.upload.volume.from.local',
|
||||
show: () => { return 'getUploadParamsForVolume' in store.getters.apis },
|
||||
listView: true,
|
||||
popup: true,
|
||||
component: shallowRef(defineAsyncComponent(() => import('@/views/storage/UploadLocalVolume.vue')))
|
||||
|
|
|
|||
Loading…
Reference in New Issue