Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ui/src/components/view/ImageDeployInstanceButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,16 @@ 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'
Comment thread
shwstppr marked this conversation as resolved.
Outdated
}
Comment thread
shwstppr marked this conversation as resolved.
Comment thread
shwstppr marked this conversation as resolved.
},
methods: {
fetchData () {
this.fetchResourceData()
},
fetchResourceData () {
if (!this.resource || !this.resource.id) {
if (!this.resource || !this.resource.id || this.resource.state !== 'Ready') {
Comment thread
shwstppr marked this conversation as resolved.
Outdated
return
}
const params = {
Expand Down
Loading