mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
fixes ProfilUpdate bugs
This commit is contained in:
@@ -68,14 +68,12 @@ export default {
|
||||
: "denyProfilRequest"
|
||||
](this.data)
|
||||
.then((res) => {
|
||||
this.setLoading(false);
|
||||
this.loading = false;
|
||||
this.result = true;
|
||||
})
|
||||
.catch((e) => {
|
||||
Alert.popup(Vue.h("div", { innerHTML: e.response.data }));
|
||||
})
|
||||
.catch((e) => this.$fhcAlert.handleSystemError)
|
||||
.finally(() => {
|
||||
this.setLoading(false);
|
||||
this.loading = false;
|
||||
this.hide();
|
||||
});
|
||||
},
|
||||
|
||||
@@ -135,9 +135,7 @@ export default {
|
||||
.then((res) => {
|
||||
this.$refs.UpdatesTable.tabulator.setData();
|
||||
})
|
||||
.catch((e) => {
|
||||
Alert.popup(Vue.h("div", { innerHTML: e.response.data }));
|
||||
});
|
||||
.catch((e) => this.$fhcAlert.handleSystemError);
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -153,9 +151,7 @@ export default {
|
||||
.then((res) => {
|
||||
this.$refs.UpdatesTable.tabulator.setData();
|
||||
})
|
||||
.catch((e) => {
|
||||
Alert.popup(Vue.h("div", { innerHTML: e.response.data }));
|
||||
});
|
||||
.catch((e) => this.$fhcAlert.handleSystemError);
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -308,9 +304,7 @@ export default {
|
||||
.then((res) => {
|
||||
// block when the request was successful
|
||||
})
|
||||
.catch((e) => {
|
||||
Alert.popup(Vue.h("div", { innerHTML: e.response.data }));
|
||||
})
|
||||
.catch((e) => this.$fhcAlert.handleSystemError)
|
||||
.finally(() => {
|
||||
this.$refs.UpdatesTable.tabulator.setData();
|
||||
});
|
||||
@@ -320,9 +314,7 @@ export default {
|
||||
.then((res) => {
|
||||
// block when the request was successful
|
||||
})
|
||||
.catch((e) => {
|
||||
Alert.popup(Vue.h("div", { innerHTML: e.response.data }));
|
||||
})
|
||||
.catch((e) => this.$fhcAlert.handleSystemError)
|
||||
.finally(() => {
|
||||
// update the data inside the table
|
||||
this.$refs.UpdatesTable.tabulator.setData();
|
||||
|
||||
@@ -81,12 +81,7 @@ export default {
|
||||
.then(res => {
|
||||
this.activeAmpeln = res.data;
|
||||
})
|
||||
.catch(error => {
|
||||
if (error.code === 'ECONNABORTED')
|
||||
this.fetchNonConfirmedActiveAmpeln();
|
||||
else
|
||||
this.$fhcAlert.handleSystemError(error);
|
||||
});
|
||||
.catch(error => this.$fhcAlert.handleSystemError);
|
||||
},
|
||||
fetchAllActiveAmpeln() {
|
||||
this.$fhcApi.factory
|
||||
@@ -94,12 +89,7 @@ export default {
|
||||
.then(res => {
|
||||
this.allAmpeln = res.data;
|
||||
})
|
||||
.catch(error => {
|
||||
if (error.code === 'ECONNABORTED')
|
||||
this.fetchAllActiveAmpeln();
|
||||
else
|
||||
this.$fhcAlert.handleSystemError(error);
|
||||
});
|
||||
.catch(error => this.$fhcAlert.handleSystemError);
|
||||
|
||||
},
|
||||
async confirm(ampelId) {
|
||||
|
||||
Reference in New Issue
Block a user