This commit is contained in:
2019-03-11 23:08:34 +00:00
parent 263426a741
commit 6550307caa
3 changed files with 6 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ DATETIME
- My rules object needs to be coded so I can easily specify a collection of rules appropriate to a form field
- So, for example let's say I have a date input, if I commonly need one to be required and be after or before another field then I should have a single combined rule of
RequiredAndAfterTarget and this method is aggregates both the required and the After rules into a single collection returned
- Test on mobile and desktop all browsers before moving on, it must be solid with error handling (required, after before etc) and etc and then if all is well we can move on to the other field types
@@ -43,6 +43,7 @@ DateTime field next
- API get code is incorrectly dealing with expired bearer cert, a 401 is returned and it tries to parse the result as if it succeeded when it really should trigger a login process
- Time zone offset mismatch warning needs expansion, it should only prompt a few times (maybe or find a way to deal with this) and it should offer to change it at the server automatically
- Localize time zone mismatch warning
- Don't like popup messages, would rather see a notification icon and be part of that unless it's super critical
- Implement a toaster or some similar notification

View File

@@ -28,6 +28,9 @@ export default {
return false;
}
},
Max255(ltkey, value) {
return this.MaxLength(ltkey, value, 255);
},
After(startDate, endDate) {
if (startDate === undefined || startDate === null) {
return false;

View File

@@ -8,6 +8,7 @@
v-model="obj.name"
:counter="255"
:label="this.$gzlocale.get('WidgetName')"
:rules="[this.$gzv.Max255('WidgetName',obj.name)]"
name="name"
required
></v-text-field>