mirror of https://github.com/apache/cloudstack.git
ui: do not show deploy instance button for not ready images (#13161)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
21b2025c50
commit
8e933b735e
|
|
@ -83,7 +83,8 @@ export default {
|
|||
computed: {
|
||||
allowed () {
|
||||
return (this.$route.meta.name === 'template' ||
|
||||
(this.$route.meta.name === 'iso' && this.resource.bootable))
|
||||
(this.$route.meta.name === 'iso' && this.resource?.bootable)) &&
|
||||
!!this.resource?.isready
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -91,7 +92,7 @@ export default {
|
|||
this.fetchResourceData()
|
||||
},
|
||||
fetchResourceData () {
|
||||
if (!this.resource || !this.resource.id) {
|
||||
if (!this.resource || !this.resource.id || !this.resource.isready) {
|
||||
return
|
||||
}
|
||||
const params = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue