Настроил скрытие формы после успешного добавления
This commit is contained in:
parent
6bb6835145
commit
20d89cbb0e
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user