From 40f732cd48ee36ebcc05bcc4def19adbfb3180ac Mon Sep 17 00:00:00 2001 From: shortcutme Date: Tue, 5 Feb 2019 15:55:12 +0100 Subject: [PATCH] Only show modified files notification if site is owned --- src/Ui/media/Wrapper.coffee | 2 +- src/Ui/media/all.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ui/media/Wrapper.coffee b/src/Ui/media/Wrapper.coffee index 4311d873..2d27f098 100644 --- a/src/Ui/media/Wrapper.coffee +++ b/src/Ui/media/Wrapper.coffee @@ -191,7 +191,7 @@ class Wrapper @actionRequestFullscreen() else # Send to websocket if message.id < 1000000 - if message.cmd == "fileWrite" and not @modified_panel_updater_timer + if message.cmd == "fileWrite" and not @modified_panel_updater_timer and site_info?.settings?.own @modified_panel_updater_timer = setTimeout ( => @updateModifiedPanel(); @modified_panel_updater_timer = null ), 1000 @ws.send(message) # Pass message to websocket else diff --git a/src/Ui/media/all.js b/src/Ui/media/all.js index fa921aea..040a59fe 100644 --- a/src/Ui/media/all.js +++ b/src/Ui/media/all.js @@ -1172,7 +1172,7 @@ $.extend( $.easing, return this.actionRequestFullscreen(); } else { if (message.id < 1000000) { - if (message.cmd === "fileWrite" && !this.modified_panel_updater_timer) { + if (message.cmd === "fileWrite" && !this.modified_panel_updater_timer && (typeof site_info !== "undefined" && site_info !== null ? (ref = site_info.settings) != null ? ref.own : void 0 : void 0)) { this.modified_panel_updater_timer = setTimeout(((function(_this) { return function() { _this.updateModifiedPanel();