Skip to content

Commit 9537afb

Browse files
authored
Apply suggestions from code review
Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent f16be94 commit 9537afb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/src/components/view/ImageDeployInstanceButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ export default {
8484
allowed () {
8585
return (this.$route.meta.name === 'template' ||
8686
(this.$route.meta.name === 'iso' && this.resource?.bootable)) &&
87-
this.resource?.state === 'Ready'
87+
this.resource.isready
8888
}
8989
},
9090
methods: {
9191
fetchData () {
9292
this.fetchResourceData()
9393
},
9494
fetchResourceData () {
95-
if (!this.resource || !this.resource.id || this.resource.state !== 'Ready') {
95+
if (!this.resource || !this.resource.id || !this.resource.isready) {
9696
return
9797
}
9898
const params = {

0 commit comments

Comments
 (0)