HUGE REFACTOR / CLEANUP
if there is a issue it's probably something in here that was changed
This commit is contained in:
@@ -21,10 +21,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/* Xeslint-disable */
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//THIS FORM IS CREATE ONLY
|
||||
//no delete, no duplicate, no fetch, just create or leave
|
||||
//
|
||||
@@ -33,7 +29,7 @@ const FORM_KEY = "customer-workorder";
|
||||
|
||||
export default {
|
||||
async created() {
|
||||
let vm = this;
|
||||
const vm = this;
|
||||
|
||||
try {
|
||||
await initForm();
|
||||
@@ -85,7 +81,6 @@ export default {
|
||||
form() {
|
||||
return window.$gz.form;
|
||||
}
|
||||
//end methods
|
||||
}
|
||||
};
|
||||
|
||||
@@ -96,7 +91,7 @@ async function clickHandler(menuItem) {
|
||||
if (!menuItem) {
|
||||
return;
|
||||
}
|
||||
let m = window.$gz.menu.parseMenuItem(menuItem);
|
||||
const m = window.$gz.menu.parseMenuItem(menuItem);
|
||||
if (m.owner == FORM_KEY && !m.disabled) {
|
||||
switch (m.key) {
|
||||
default:
|
||||
@@ -112,7 +107,7 @@ async function clickHandler(menuItem) {
|
||||
//
|
||||
//
|
||||
function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
const menuOptions = {
|
||||
isMain: false,
|
||||
readOnly: vm.formState.readOnly,
|
||||
icon: "$ayiTools",
|
||||
@@ -127,7 +122,6 @@ function generateMenu(vm) {
|
||||
};
|
||||
|
||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||
|
||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user