Настроил скрытие формы после успешного добавления

This commit is contained in:
Sipachev Igor 2022-04-15 13:25:48 +07:00
parent 6bb6835145
commit 20d89cbb0e
2 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,7 @@ export default class Mocks extends Vue {
mode!: Mode
showLoader = false
isHidden = false
registers = new Registers()
register2Id: Record<string, string> = {}
@ -31,6 +32,7 @@ export default class Mocks extends Vue {
onPersonalCodeChanged () {
this.registers.reset()
this.showLoader = false
this.isHidden = false
this.refreshMocks()
}
@ -115,6 +117,7 @@ export default class Mocks extends Vue {
})
.then(() => {
this.showLoader = false
this.isHidden = true
})
}

View File

@ -1,4 +1,4 @@
<div>
<div v-if="!isHidden">
<div v-if="showLoader" class="lds-grid"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
<div v-if="!showLoader">
<div class="mock-service__select">