Robert Vogel has uploaded a new change for review.

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

Change subject: Remove "edit" button from UI
......................................................................

Remove "edit" button from UI

... as this is not implemented yet.

Change-Id: I74f043ce4106d9532228ec461f3ea3c648792210
---
M resources/BS.BlueSpiceCategoryManager/TreePanel.js
1 file changed, 9 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceCategoryManager 
refs/changes/88/318288/1

diff --git a/resources/BS.BlueSpiceCategoryManager/TreePanel.js 
b/resources/BS.BlueSpiceCategoryManager/TreePanel.js
index 255f360..01b9372 100644
--- a/resources/BS.BlueSpiceCategoryManager/TreePanel.js
+++ b/resources/BS.BlueSpiceCategoryManager/TreePanel.js
@@ -214,5 +214,14 @@
                                scope: this
                        }
                );
+       },
+
+       opPermitted: function( operation ) {
+               //Edit functionality is not yet implemented. For the time being 
this
+               //is the simplest way to hide the "edit" button from the UI.
+               if( operation === 'update' ) {
+                       return false;
+               }
+               return this.callParent( arguments );
        }
 } );
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I74f043ce4106d9532228ec461f3ea3c648792210
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceCategoryManager
Gerrit-Branch: master
Gerrit-Owner: Robert Vogel <vo...@hallowelt.biz>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to