Skip to content

Commit

Permalink
fix: fix linter on debio-lab (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciniiia authored Apr 6, 2022
1 parent 86d96b2 commit 5cd9f22
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/views/Dashboard/Lab/Services/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ export default {
serviceCount: 0
}),
computed:{
...mapGetters({
api: 'substrate/getAPI',
pair: 'substrate/wallet',
web3: 'metamask/getWeb3',
labAccount: 'substrate/labAccount',
}),
...mapGetters({
api: "substrate/getAPI",
pair: "substrate/wallet",
web3: "metamask/getWeb3",
labAccount: "substrate/labAccount"
}),
...mapState({
lastEventData: (state) => state.substrate.lastEventData
Expand All @@ -170,18 +170,18 @@ export default {
lastEventData(val) {
if (val === null) return
if (val.method === "ServiceDeleted") {
this.isLoading = false
this.showDialog = false
this.getServices()
this.checkServiceCount()
this.isLoading = false
this.showDialog = false
this.getServices()
this.checkServiceCount()
}
}
},
async created() {
await this.getServices()
await this.checkServiceCount()
},
async created() {
await this.getServices()
await this.checkServiceCount()
},
methods:{
async getServices() {
Expand Down Expand Up @@ -228,15 +228,15 @@ export default {
},
confirmDeleteService(item) {
this.idItemDeleted = item.id
this.showDialog = true
this.idItemDeleted = item.id
this.showDialog = true
},
async checkServiceCount() {
this.serviceCount = this.labAccount.services.length
if (this.serviceCount <= 1) {
this.activeButton = false
}
if (this.serviceCount <= 1) {
this.activeButton = false
}
}
}
}
Expand Down

0 comments on commit 5cd9f22

Please sign in to comment.