Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-8.12.x' into candidate…
Browse files Browse the repository at this point in the history
…-9.0.x
  • Loading branch information
GordonSmith committed Nov 16, 2023
2 parents d1b4e78 + a54f00c commit a13521e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 38 deletions.
36 changes: 0 additions & 36 deletions esp/src/src-react/components/Frame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,42 +90,6 @@ export const Frame: React.FunctionComponent<FrameProps> = () => {
return () => unlisten();
}, []);

React.useEffect(() => {
initSession();

topic.subscribe("hpcc/session_management_status", function (publishedMessage) {
if (publishedMessage.status === "Unlocked") {
unlock();
} else if (publishedMessage.status === "Locked") {
lock();
} else if (publishedMessage.status === "DoIdle") {
fireIdle();
} else if (publishedMessage.status === "Idle") {
window.localStorage.setItem("pageOnLock", window.location.hash.substring(1));
setUserSession({ ...userSession, Status: "Locked" });
window.location.reload();
}
});
}, [setUserSession, userSession]);

React.useEffect(() => {
initSession();

topic.subscribe("hpcc/session_management_status", function (publishedMessage) {
if (publishedMessage.status === "Unlocked") {
unlock();
} else if (publishedMessage.status === "Locked") {
lock();
} else if (publishedMessage.status === "DoIdle") {
fireIdle();
} else if (publishedMessage.status === "Idle") {
window.localStorage.setItem("pageOnLock", window.location.hash.substring(1));
setUserSession({ ...userSession, Status: "Locked" });
window.location.reload();
}
});
}, [setUserSession, userSession]);

React.useEffect(() => {
document.title = `${showEnvironmentTitle && environmentTitle.length ? environmentTitle : "ECL Watch "}${locationPathname.split("/").join(" | ")}`;
}, [environmentTitle, locationPathname, showEnvironmentTitle]);
Expand Down
4 changes: 2 additions & 2 deletions esp/src/src/ESPUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,10 @@ export function goToPageUserPreference(gridName, key) {

export const MonitorLockClick = dojo.declare([Evented], {
unlocked() {
this.emit("Unlocked", {});
this.emit("unlocked", {});
},
locked() {
this.emit("Locked", {});
this.emit("locked", {});
}
});

Expand Down

0 comments on commit a13521e

Please sign in to comment.