This commit is contained in:
@@ -63,6 +63,7 @@ http://localhost:8080/login
|
|||||||
|
|
||||||
CURRENT WORK:
|
CURRENT WORK:
|
||||||
|
|
||||||
|
- test repeat error message code in errorhandler (throw same error multiple times??)
|
||||||
- Get edit form existing features completely working (also need new reportchooser not based on the original dialog component)
|
- Get edit form existing features completely working (also need new reportchooser not based on the original dialog component)
|
||||||
- new record entry is a bit fucked up:
|
- new record entry is a bit fucked up:
|
||||||
- Getting validation errors that don't make sense
|
- Getting validation errors that don't make sense
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ var lastMessageHash = 0;
|
|||||||
function dealWithError(msg, vm) {
|
function dealWithError(msg, vm) {
|
||||||
//Check if this is the same message again as last time to avoid
|
//Check if this is the same message again as last time to avoid
|
||||||
//repetitive loops of useless messages
|
//repetitive loops of useless messages
|
||||||
var newHash = window.$gz.gzutil.quickHash(msg);
|
var newHash = window.$gz.util.quickHash(msg);
|
||||||
if (newHash == lastMessageHash) {
|
if (newHash == lastMessageHash) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -497,6 +497,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
remove() {
|
remove() {
|
||||||
|
throw "Fake remove error";
|
||||||
|
// eslint-disable-next-line no-unreachable
|
||||||
var vm = this;
|
var vm = this;
|
||||||
window.$gz.dialog.confirmDelete().then(dialogResult => {
|
window.$gz.dialog.confirmDelete().then(dialogResult => {
|
||||||
if (dialogResult == true) {
|
if (dialogResult == true) {
|
||||||
@@ -539,6 +541,8 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
throw "Fake duplicate error";
|
||||||
|
// eslint-disable-next-line no-unreachable
|
||||||
if (this.canDuplicate && this.$route.params.id != 0) {
|
if (this.canDuplicate && this.$route.params.id != 0) {
|
||||||
this.formState.loading = true;
|
this.formState.loading = true;
|
||||||
var vm = this;
|
var vm = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user