Amire80 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/181246

Change subject: Hide the entry point only if it's known to be shown
......................................................................

Hide the entry point only if it's known to be shown

Bug: T85056
Change-Id: I5b54d4d5eeaf729b7510e4c86d9871ffc6534a94
---
M modules/entrypoint/ext.cx.entrypoint.js
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/46/181246/1

diff --git a/modules/entrypoint/ext.cx.entrypoint.js 
b/modules/entrypoint/ext.cx.entrypoint.js
index 39e2537..47cba1e 100644
--- a/modules/entrypoint/ext.cx.entrypoint.js
+++ b/modules/entrypoint/ext.cx.entrypoint.js
@@ -135,7 +135,10 @@
         * Hide the entry point dialog.
         */
        CXEntryPoint.prototype.hide = function () {
-               this.$dialog.hide();
+               if ( this.shown ) {
+                       this.$dialog.hide();
+               }
+
                this.shown = false;
        };
 

-- 
To view, visit https://gerrit.wikimedia.org/r/181246
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5b54d4d5eeaf729b7510e4c86d9871ffc6534a94
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to