Add handlers for non-successful responses from the panel

This commit is contained in:
Dane Everitt 2018-06-02 16:59:16 -07:00
parent ebb7b6de9b
commit 4209be021e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 21 additions and 2 deletions

View file

@ -68,6 +68,10 @@
email: this.$props.email,
})
.then(function (response) {
if (!(response.data instanceof Object)) {
throw new Error('An error was encountered while processing this request.');
}
self.$data.submitDisabled = false;
self.$data.showSpinner = false;
self.success(response.data.status);