|
@ -186,6 +186,16 @@ export default class DiscoverView extends Vue { |
|
|
|
|
|
|
|
|
if (response.status !== 200) { |
|
|
if (response.status !== 200) { |
|
|
const details = await response.text(); |
|
|
const details = await response.text(); |
|
|
|
|
|
this.$notify( |
|
|
|
|
|
{ |
|
|
|
|
|
group: "alert", |
|
|
|
|
|
type: "danger", |
|
|
|
|
|
title: "Danger Alert", |
|
|
|
|
|
text: details, |
|
|
|
|
|
}, |
|
|
|
|
|
-1, |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
throw details; |
|
|
throw details; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -240,6 +250,16 @@ export default class DiscoverView extends Vue { |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
if (response.status !== 200) { |
|
|
if (response.status !== 200) { |
|
|
|
|
|
const details = await response.text(); |
|
|
|
|
|
this.$notify( |
|
|
|
|
|
{ |
|
|
|
|
|
group: "alert", |
|
|
|
|
|
type: "danger", |
|
|
|
|
|
title: "Danger Alert", |
|
|
|
|
|
text: details, |
|
|
|
|
|
}, |
|
|
|
|
|
-1, |
|
|
|
|
|
); |
|
|
throw await response.text(); |
|
|
throw await response.text(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|