Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix linter on debio-lab #383

Merged
merged 1 commit into from
Apr 6, 2022
Merged
Changes from all commits
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
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