This commit is contained in:
2019-02-20 20:34:02 +00:00
parent 38990fa56f
commit ff305a9b98
8 changed files with 111 additions and 21 deletions

View File

@@ -10,7 +10,7 @@
<v-container grid-list-md>
<v-layout wrap>
<v-flex xs12 sm6 md4>
<v-text-field label="Legal first name*" required></v-text-field>
<v-text-field label="ZZZZZLegal first name*" required></v-text-field>
</v-flex>
<v-flex xs12 sm6 md4>
<v-text-field label="Legal middle name" hint="example of helper text only on focus"></v-text-field>
@@ -54,6 +54,7 @@
</template>
<script>
/* eslint-disable */
export default {
/* Check rights to edit or view here?
e.g.
@@ -68,8 +69,34 @@ export default {
showeditdialog: false,
recordId: 0
}
}, mounted() {
/* Check rights here?
e.g.
if (
roles.hasRole(roles.AuthorizationRoles.OpsAdminFull) ||
roles.hasRole(roles.AuthorizationRoles.OpsAdminLimited)
) {
addNavItem(lt.get("Operations"), "cogs", "ops");
}
*/
console.log("MOUNTED");
},
data: () => ({})
data: () => ({}),
beforeRouteEnter(to, from, next) {
console.log("BEFOREROUTENTER");
debugger;
if (
false
// roles.hasRole(roles.AuthorizationRoles.OpsAdminFull) ||
// roles.hasRole(roles.AuthorizationRoles.OpsAdminLimited)
) {
debugger;
next();
} else {
debugger;
next(false);
}
}
};
</script>

View File

@@ -52,7 +52,7 @@
<script>
/* eslint-disable */
/* Xeslint-disable */
import localeText from "../api/locale";
import api from "../api/apiutil";
import WidgetEdit from "../components/inventorywidgetedit";
@@ -127,7 +127,7 @@ export default {
addNavItem(lt.get("Operations"), "cogs", "ops");
}
*/
this.rowsPerPageText = this.lt("RowsPerPage");
this.rowsPerPageText = this.lt("RowsPerPage");
},
computed: {},
methods: {