This commit is contained in:
2019-05-29 20:41:18 +00:00
parent 9b3dc8169c
commit fa6fe20ae1
5 changed files with 768 additions and 1032 deletions

View File

@@ -21,11 +21,7 @@ NEXT TODOS:
- Selected 420 in the widget edit form but it shows as 11:20 on the main list, localization time issue
- Retest on desktop, probably a general date time conversion bug
- On field change and lose focus, the save button is not enabled necessarily until the second click
- Can the save button be enabled more quickly after losing focus on the edited field or should I revamp that?
- I can see users making a quick change clicking on save once and it won't save but they think it has.
- Right now you need to click twice on save
- On object not found when deleting an item and trying to reload the edit page, shoudl redirect to home or back instead or just not there
- Locale settings move to store
@@ -275,7 +271,10 @@ AUTOCOMPLETE
"THORNY ISSUES" below are needed to be resolved sooner than later
- Maybe an issue maybe not: On field change and lose focus, the save button is not enabled necessarily until the second click
- Can the save button be enabled more quickly after losing focus on the edited field or should I revamp that?
- I can see users making a quick change clicking on save once and it won't save but they think it has.
- Right now you need to click twice on save
- Stage 2 AFTER POSTED TEST ROUND COMPLETED

1751
ayanova/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -20,19 +20,19 @@
"vue": "^2.6.10",
"vue-router": "^3.0.6",
"vuetify": "^1.5.14",
"vuetify-dialog": "^0.3.4",
"vuex": "^3.1.0",
"vuetify-dialog": "^0.3.6",
"vuex": "^3.1.1",
"vuex-persistedstate": "^2.5.4"
},
"devDependencies": {
"@cypress/webpack-preprocessor": "^3.0.0",
"@fortawesome/fontawesome-free": "^5.8.2",
"@vue/cli-plugin-babel": "^3.7.0",
"@vue/cli-plugin-e2e-cypress": "^3.7.0",
"@vue/cli-plugin-eslint": "^3.7.0",
"@vue/cli-plugin-pwa": "^3.7.0",
"@vue/cli-plugin-unit-jest": "^3.7.0",
"@vue/cli-service": "^3.7.0",
"@vue/cli-plugin-babel": "^3.8.0",
"@vue/cli-plugin-e2e-cypress": "^3.8.0",
"@vue/cli-plugin-eslint": "^3.8.0",
"@vue/cli-plugin-pwa": "^3.8.0",
"@vue/cli-plugin-unit-jest": "^3.8.0",
"@vue/cli-service": "^3.8.0",
"@vue/eslint-config-prettier": "^4.0.1",
"@vue/test-utils": "^1.0.0-beta.29",
"babel-core": "7.0.0-bridge.0",

View File

@@ -436,6 +436,8 @@ export default {
// This is required so that server errors can be cleared when input is changed
//
onChange(vm, ref) {
//eslint-disable-next-line
console.log("GZFORM::onChange triggered!");
if (triggeringChange || vm.formState.loading) {
return;
}

View File

@@ -138,11 +138,9 @@
</v-flex>
</v-layout>
<v-layout align-left justify-center row wrap mt-5>
<!-- <v-layout align-left justify-center row wrap mt-5>
<v-flex xs6 sm4>
endate: {{ obj.endDate }}
<br />
<!-- READY: {{ formState.ready }}
READY: {{ formState.ready }}
<br />
LOADING: {{ formState.loading }}
<br />
@@ -151,16 +149,16 @@
VALID: {{ formState.valid }}
<br />
READONLY: {{ formState.readOnly }}
<br /> -->
<br />
</v-flex>
</v-layout>
</v-layout> -->
</v-form>
</v-flex>
</v-layout>
</template>
<script>
/* Xeslint-disable */
/* eslint-disable */
/////////////////////////////
//
@@ -347,12 +345,20 @@ export default {
var url = "Widget/" + this.$route.params.id;
var vm = this;
this.$gzform.deleteAllErrorBoxErrors(this);
this.$gzapi
.get(url)
.then(res => {
if (res.error) {
if(res.error.code=="2010"){
//notify error then navigate backwards
vm.$gzevent.$emit("notify-error", res.error.message);//TODO LOCALIZE THIS AND MOVE TO API
// navigate backwards
vm.$router.go(-1);
}
vm.formState.serverError = res.error;
vm.$gzform.setErrorBoxErrors(vm);
} else {
vm.obj = res.data;
//Update the form status