Skip to content

A platform for community discussion. Free, open, simple.

FIX: don't display cloak on admin tool when the right wrench is clicked (#8641)

Krzysztof Kotlarekfd8b98a55ed1
diff --git a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6
index 56d06bb3c5a..d7f8fb97d82 100644
--- a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6
+++ b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6
@@ -74,9 +74,8 @@ createWidget("topic-admin-menu-button", {
this.state.expanded = false;
this.state.position = null;
- if (this.site.mobileView) {
- $("#topic-progress-wrapper").css("z-index", "");
- $(".header-cloak").hide();
+ if (this.site.mobileView && !this.attrs.rightSide) {
+ $(".header-cloak").css("display", "");
}
},
@@ -104,9 +103,8 @@ createWidget("topic-admin-menu-button", {
position.left += $button.width() - 203;
}
- if (this.site.mobileView) {
- $("#topic-progress-wrapper").css("z-index", "auto");
- $(".header-cloak").show();
+ if (this.site.mobileView && !this.attrs.rightSide) {
+ $(".header-cloak").css("display", "block");
}
this.state.position = position;