File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 764764 </a-button >
765765 </router-link >
766766 </div >
767- <image-deploy-instance-button :resource =" resource" />
767+ <image-deploy-instance-button
768+ v-if =" 'deployVirtualMachine' in $store.getters.apis && ['template', 'iso'].includes($route.meta.name)"
769+ :resource =" resource" />
768770 </div >
769771
770772 <div class =" account-center-tags" v-if =" showKeys || resource.apikeyaccess" >
Original file line number Diff line number Diff line change 5252 <span v-if =" record.created" >{{ $toLocaleDate(record.created) }}</span >
5353 </template >
5454 <template v-if =" column .key === ' actions' " >
55- <span style =" margin-right : 5px " >
55+ <span style =" margin-right : 5px " v-if = " 'deployVirtualMachine' in $store.getters.apis " >
5656 <tooltip-button
57- :disabled =" !('deployVirtualMachine' in $store.getters.apis) || ! record.isready"
57+ :disabled =" !record.isready"
5858 :title =" $t('label.vm.add')"
5959 icon =" rocket-outlined"
6060 @onClick =" onAddInstance(record)" />
Original file line number Diff line number Diff line change 5252 <span v-if =" record.created" >{{ $toLocaleDate(record.created) }}</span >
5353 </template >
5454 <template v-if =" column .key === ' actions' " >
55- <span style =" margin-right : 5px " >
55+ <span style =" margin-right : 5px " v-if = " 'deployVirtualMachine' in $store.getters.apis " >
5656 <tooltip-button
57- :disabled =" !('deployVirtualMachine' in $store.getters.apis) || ! record.isready"
57+ :disabled =" !record.isready"
5858 :title =" $t('label.vm.add')"
5959 icon =" rocket-outlined"
6060 @onClick =" onAddInstance(record)" />
You can’t perform that action at this time.
0 commit comments