Permalink
Browse files

QRCode for easy server connection on mobile

  • Loading branch information...
1 parent 4ba4e44 commit dc25f7f97d717a06f3d49a831ddd282d4425b897 @cdujeu cdujeu committed Jul 12, 2016
@@ -52,6 +52,10 @@ public function parseSpecificContributions(ContextInterface $ctx, \DOMNode &$con
$gettingStartedList->item(0)->appendChild($newCData);
$gettingStartedList->item(0)->replaceChild($newCData, $cdata);
}
+ }else if($contribNode->nodeName == "actions" && $this->getContextualOption($ctx, "DISPLAY_SERVER_QRCODE_ACTION") === false){
+ $actionXpath = new DOMXPath($contribNode->ownerDocument);
+ $actionList = $actionXpath->query('action[@name="display-server-qrcode"]', $contribNode);
+ $contribNode->removeChild($actionList->item(0));
}
}
@@ -29,7 +29,7 @@
<registry_contributions>
<actions>
<action name="display-server-qrcode">
- <gui src="folder.png" iconClass="mdi mdi-qrcode-scan" text="user_home.72" title="user_home.73">
+ <gui src="folder.png" iconClass="mdi mdi-qrcode-scan" text="user_home.72" title="user_home.74">
<context actionBarGroup="utils" actionBar="true" dir="true" recycle="true" selection="false" ajxpWidgets="UserWidget::logging_string"/>
</gui>
<processing>
@@ -104,7 +104,7 @@
id: 'search-autosuggest',
name: 'search-autosuggest',
className: 'react-autosuggest__input',
- placeholder: pydio.MessageHash['user_home.72'],
+ placeholder: pydio.MessageHash['user_home.75'],
onBlur: event => pydio.UI.enableAllKeyBindings(),
onFocus: event => pydio.UI.disableAllKeyBindings(),
value: '' // Initial value

0 comments on commit dc25f7f

Please sign in to comment.