Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 07155af

Browse files
committed
Fix double share button.
1 parent e435381 commit 07155af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/plugins/action.share/manifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
</action>
271271
<action name="share-edit-shared">
272272
<gui src="share.png" iconClass="icon-share" text="share_center.125" title="share_center.126">
273-
<context dir="true" recycle="hidden" selection="true" actionBar="true" contextMenu="true" actionBarGroup="get,share_list_toolbar,info_panel_share" behaviour="hidden"/>
273+
<context dir="true" recycle="hidden" selection="true" actionBar="true" contextMenu="true" actionBarGroup="get,info_panel_share" behaviour="hidden"/>
274274
<selectionContext dir="true" file="true" evalMetadata="metadata.get('ajxp_shared')" recycle="false" unique="true" behaviour="hidden"/>
275275
</gui>
276276
<processing>
@@ -393,7 +393,7 @@
393393
if(!pydio.getController().shareCenter) {
394394
pydio.getController().shareCenter = new ShareCenter();
395395
}
396-
if(window.actionArguments){
396+
if(window.actionArguments && window.actionArguments.length){
397397
pydio.getController().shareCenter.performShareAction(window.actionArguments[0]);
398398
}else if(window.actionManager){
399399
pydio.getController().shareCenter.performShareAction(window.actionManager.getDataModel());

0 commit comments

Comments
 (0)