HUGE REFACTOR / CLEANUP

if there is a issue it's probably something in here that was changed
This commit is contained in:
2021-09-28 20:19:44 +00:00
parent 51eddfede9
commit d0afdd9855
238 changed files with 3127 additions and 8614 deletions

View File

@@ -2,7 +2,6 @@
<v-app>
<gznotify ref="gznotify"></gznotify>
<gzconfirm ref="gzconfirm"></gzconfirm>
<!-- <gzreportselector ref="gzreportselector"></gzreportselector> -->
<!-- Width of nav drawer set to allow widest translated text menu item to show which is spanish client service requests item
and also leave a tiny space to click on outside of nav for galaxy 9 phone (narrowest width supported device)
@@ -137,7 +136,6 @@
</div>
</template>
</v-navigation-drawer>
<!-- :color="appBar.isMain ? 'primary' : 'secondary'" style="width: 300px" -->
<v-app-bar v-if="isAuthenticated" :color="appBar.color" dark fixed app>
<v-app-bar-nav-icon
@click.stop="drawer = !drawer"
@@ -236,16 +234,12 @@
</v-main>
</v-app>
</template>
<script>
/* Xeslint-disable */
import gzconfirm from "./components/gzconfirm";
import gznotify from "./components/gznotify";
import openObjectHandler from "./api/open-object-handler";
import notifyPoll from "./api/notifypoll";
import { processLogout } from "./api/authutil";
export default {
components: {
gzconfirm,
@@ -300,14 +294,10 @@ export default {
window.$gz.eventBus.$off();
},
mounted() {
let vm = this;
const vm = this;
vm.$vuetify.theme.dark = vm.$store.state.darkMode;
vm.$root.$gzconfirm = vm.$refs.gzconfirm.open;
vm.$root.$gznotify = vm.$refs.gznotify.addNotification;
//weird bastardization thing
//basically I want to access $gz in vue components where I can't access Window
//this smells bad but it works
vm.$root.$gz = window.$gz;
//direct open path?
@@ -323,7 +313,7 @@ export default {
toPath = undefined;
}
let isReset = toPath && toPath.includes("home-reset");
const isReset = toPath && toPath.includes("home-reset");
if (isReset && vm.$store.state.authenticated) {
processLogout();
}
@@ -411,7 +401,7 @@ export default {
}
//User is logged in offer to update in a dialog with translated text
let dialogResult = await window.$gz.dialog.confirmGeneric(
const dialogResult = await window.$gz.dialog.confirmGeneric(
"UpdateAvailable"
);
if (dialogResult == false) {