This commit is contained in:
2019-05-01 22:05:24 +00:00
parent bca2e41a62
commit b87d43b70d
3 changed files with 6 additions and 22 deletions

View File

@@ -48,8 +48,8 @@ All platforms and browsers
- DONE Not authenticated at all 401
- DONE Redirect to login
- DONE Not authorized for this object 403 (could be due to not own or whatever, we don't care, server handles that shit, client just knows not to show it)
- Object...BUT with READONLY flag of some kind present (in outer wrapper??), so client knows to show read only and not allow editing
- And client doesn't need to work out self owned etc
- DONE Object...BUT with READONLY flag of some kind present (in outer wrapper??), so client knows to show read only and not allow editing
- DONE And client doesn't need to work out self owned etc
- DONE Object without readonly flag present so fully editable!!! WOOT!
- Form (AND THE LIST OBJECT) should check rights and adapt accordingly
- ReadFULL record but no change should show record read only
@@ -126,7 +126,7 @@ TODO: Grid / LIST VIEW = I know customers will want to control what shows in the
- Customers probably want the option of picking what fields show and what don't
- Need to think this over, do I have defined columns or is the list just for display to select the record in which case can it just be one column with user selected values showing??
TODO: Outstanding case with vuetify bug in clear button when readonly, check if fixed and if it isn't might need a workaround
DON'T code the user options with the currency symbol etc until after it's all been worked out client side. Use static values instad in locale.
Locale should fetch those settings the first time it sees they are not present so that they are refreshed upon use and are not stored in localstorage

View File

@@ -40,7 +40,6 @@ export default {
vm.appBar.menuItems.push({
title: vm.$gzlocale.get("Logout"),
icon: "sign-out-alt",
color: "pink",
key: "app:logout"
});

View File

@@ -151,17 +151,6 @@
<br>
</v-flex>
</v-layout>
<!-- <v-layout align-left justify-center row wrap mt-5>
<v-flex xs6 sm4>
<v-btn small @click="remove">{{ this.$gzlocale.get("Delete")}}</v-btn>
</v-flex>
<v-flex xs6 sm4>
<v-btn small @click="stubTestClick">TEST BUTTON</v-btn>
</v-flex>
<v-flex xs6 sm4>
<v-btn small @click="submit">{{ this.$gzlocale.get("Save")}}</v-btn>
</v-flex>
</v-layout>-->
</v-form>
</v-flex>
</v-layout>
@@ -207,9 +196,6 @@ function generateMenu(vm, readOnly) {
menuItems: []
};
//eslint-disable-next-line
console.log(readOnly);
if (readOnly != true) {
menuOptions.menuItems = [
{
@@ -235,8 +221,7 @@ function generateMenu(vm, readOnly) {
}
];
}
//eslint-disable-next-line
console.log(menuOptions);
vm.$gzevent.$emit("menu-change", menuOptions);
}
@@ -308,8 +293,8 @@ export default {
//WATCHERS
watch: {
formState: {
// eslint-disable-next-line
handler: function(val, oldVal) {
handler: function(val) {
//,oldval is available here too if necessary
if (this.formState.loading) {
return;
}