Update banner refresh (#3677) robsassack

* Added refresh on click to update banner

* Minimized added CSS
This commit is contained in:
Rob Sassack 2022-10-24 06:16:22 -04:00 committed by GitHub
parent 5ae51b36ff
commit f1ad57ab3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,6 +178,15 @@ class Notification {
}
);
}
// NOTE: This need to be changed if the update banner text is changed
if (this.message.includes("please refresh")) {
// add pointer when refresh is needed
$(`#bannerCenter .banner[id='${this.id}']`).css("cursor", "pointer");
// refresh on clicking banner
$(`#bannerCenter .banner[id='${this.id}']`).on("click", () => {
window.location.reload();
});
}
}
if (this.duration > 0) {
setTimeout(() => {