mirror of
https://github.com/Luzifer/ots.git
synced 2024-12-11 16:44:38 -05:00
[#87] Remove mock code for interface dev
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
21c4fa4a8f
commit
9798b4c635
11
src/app.vue
11
src/app.vue
@ -270,15 +270,8 @@ export default {
|
|||||||
window.setTimeout(() => this.$refs.secretUrl.focus(), 100)
|
window.setTimeout(() => this.$refs.secretUrl.focus(), 100)
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
switch (err.response.status) {
|
this.error = this.$t('alert-something-went-wrong')
|
||||||
case 404:
|
this.showError = true
|
||||||
// Mock for interface testing
|
|
||||||
this.secretId = 'foobar'
|
|
||||||
break
|
|
||||||
default:
|
|
||||||
this.error = this.$t('alert-something-went-wrong')
|
|
||||||
this.showError = true
|
|
||||||
}
|
|
||||||
}))
|
}))
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user