From f16be949ebe32c7a7ce22980367ed86e387f5bac Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 14 May 2026 16:53:06 +0530 Subject: [PATCH] ui: do not show deploy instance button for not ready images Currently, InfoCard for a not ready template shows deploy instance button which is incorrect. Signed-off-by: Abhishek Kumar --- ui/src/components/view/ImageDeployInstanceButton.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/components/view/ImageDeployInstanceButton.vue b/ui/src/components/view/ImageDeployInstanceButton.vue index 2cdd5a0af460..7006bb7d495d 100644 --- a/ui/src/components/view/ImageDeployInstanceButton.vue +++ b/ui/src/components/view/ImageDeployInstanceButton.vue @@ -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?.state === 'Ready' } }, methods: { @@ -91,7 +92,7 @@ export default { this.fetchResourceData() }, fetchResourceData () { - if (!this.resource || !this.resource.id) { + if (!this.resource || !this.resource.id || this.resource.state !== 'Ready') { return } const params = {