Esanders has uploaded a new change for review.
https://gerrit.wikimedia.org/r/265497
Change subject: Fix log for showing alien context item
......................................................................
Fix log for showing alien context item
Probably inverted for testing.
Change-Id: I9bcc62198fa4515764cb285658f602a8e9893154
---
M src/ui/contexts/ve.ui.LinearContext.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor
refs/changes/97/265497/1
diff --git a/src/ui/contexts/ve.ui.LinearContext.js
b/src/ui/contexts/ve.ui.LinearContext.js
index 992521f..f476b5b 100644
--- a/src/ui/contexts/ve.ui.LinearContext.js
+++ b/src/ui/contexts/ve.ui.LinearContext.js
@@ -272,7 +272,7 @@
if ( !this.relatedSources.length ) {
selectedNode = surfaceModel.getSelectedNode();
// For now we only need alien contexts to show
the delete button
- if ( selectedNode && selectedNode.isFocusable()
&& !this.showDeleteButton() ) {
+ if ( selectedNode && selectedNode.isFocusable()
&& this.showDeleteButton() ) {
this.relatedSources.push( {
type: 'item',
embeddable:
ve.ui.contextItemFactory.isEmbeddable( 'alien' ),
--
To view, visit https://gerrit.wikimedia.org/r/265497
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9bcc62198fa4515764cb285658f602a8e9893154
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits