This commit is contained in:
@@ -149,9 +149,13 @@
|
||||
<span v-if="appBar.title">{{ $ay.t(appBar.title) }}</span>
|
||||
</v-toolbar-title>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn text icon :data-cy="!!$ay.dev ? 'notification' : false">
|
||||
<!-- :value="unreadMsgs.length > 1" -->
|
||||
<v-badge color="red" overlap left :value="newNotificationCount() > 0">
|
||||
<v-btn
|
||||
text
|
||||
icon
|
||||
to="/home-notifications"
|
||||
:data-cy="!!$ay.dev ? 'notification' : false"
|
||||
>
|
||||
<v-badge color="deep-purple" :value="newNotificationCount() > 0">
|
||||
<template v-slot:badge>
|
||||
{{ newNotificationCount() }}
|
||||
</template>
|
||||
@@ -259,6 +263,7 @@ import ayaNovaVersion from "./api/ayanova-version";
|
||||
import gzconfirm from "./components/gzconfirm";
|
||||
import gznotify from "./components/gznotify";
|
||||
import openObjectHandler from "./api/open-object-handler";
|
||||
import notifyPoll from "./api/notifypoll";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -346,6 +351,12 @@ export default {
|
||||
window.$gz.eventBus.$emit("openobject", null);
|
||||
}
|
||||
|
||||
//RELOAD / REFRESH HANDLING
|
||||
//Restart notification polling due to refresh?
|
||||
if (window.$gz.store.state.authenticated) {
|
||||
notifyPoll.startPolling();
|
||||
}
|
||||
|
||||
//FUTURE: If need to detect a reload, this works reliably
|
||||
//OK if here then is this a reliable way to detect a reload or refresh or re-open of the app from a closed window but still authenticated?
|
||||
//console.log("APP.VUE::Mounted=>RELOAD DETECTED?");
|
||||
|
||||
Reference in New Issue
Block a user