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:
Abhishek Kumar 2026-06-11 18:45:54 +05:30 committed by GitHub
parent 21b2025c50
commit 8e933b735e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -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 = {