Only show modified files notification if site is owned
This commit is contained in:
parent
eb837e3685
commit
40f732cd48
2 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ class Wrapper
|
||||||
@actionRequestFullscreen()
|
@actionRequestFullscreen()
|
||||||
else # Send to websocket
|
else # Send to websocket
|
||||||
if message.id < 1000000
|
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
|
@modified_panel_updater_timer = setTimeout ( => @updateModifiedPanel(); @modified_panel_updater_timer = null ), 1000
|
||||||
@ws.send(message) # Pass message to websocket
|
@ws.send(message) # Pass message to websocket
|
||||||
else
|
else
|
||||||
|
|
|
@ -1172,7 +1172,7 @@ $.extend( $.easing,
|
||||||
return this.actionRequestFullscreen();
|
return this.actionRequestFullscreen();
|
||||||
} else {
|
} else {
|
||||||
if (message.id < 1000000) {
|
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) {
|
this.modified_panel_updater_timer = setTimeout(((function(_this) {
|
||||||
return function() {
|
return function() {
|
||||||
_this.updateModifiedPanel();
|
_this.updateModifiedPanel();
|
||||||
|
|
Loading…
Reference in a new issue