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

Commit

Permalink
Expose FEDERATED_SHARING_ENABLED setting
Browse files Browse the repository at this point in the history
Implement Readonly Mode on ShareDialog
  • Loading branch information
cdujeu committed Mar 1, 2016
1 parent 8a86519 commit 4202176
Show file tree
Hide file tree
Showing 9 changed files with 261 additions and 129 deletions.
1 change: 1 addition & 0 deletions core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -1584,6 +1584,7 @@ public function listSharesAsNodes($rootPath, $currentUser = true, $parentReposit
}else{
$crtParent = ConfService::getRepositoryById($repoObject->getParentId());
if(!empty($crtParent)){
$parentPath = $crtParent->getOption("PATH", false, $meta["owner"]);
$meta["shared_element_parent_repository_label"] = $crtParent->getDisplay();
}else {
$meta["shared_element_parent_repository_label"] = $repoObject->getParentId();
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/manifest.xml
Expand Up @@ -438,7 +438,7 @@
}else if(window.actionManager){
dataModel = window.actionManager.getDataModel();
}
var dialog = new AjxpReactDialogLoader('ShareDialog', 'MainPanel', {selection:dataModel});
var dialog = new AjxpReactDialogLoader('ShareDialog', 'MainPanel', {selection:dataModel, readonly:true});
dialog.openDialog('react_share_form', true);
]]></clientCallback>
</processing>
Expand Down
26 changes: 24 additions & 2 deletions core/src/plugins/action.share/res/react-share-form.css
Expand Up @@ -11,6 +11,9 @@ div#react_share_form [class^="icon-"],
div#react_share_form [class*="icon-"] {
font-family: FontAwesome;
}
div#react_share_form label.mui-switch-label {
white-space: nowrap;
}
div#react_share_form div.headerPanel {
background-color: #4aceb0 !important;
}
Expand All @@ -24,11 +27,13 @@ div#react_share_form .shared-users-rights-header {
color: #ADADAD;
padding-right: 50px;
text-align: right;
margin-top: 10px;
}
div#react_share_form .shared-users-rights-header span {
display: inline-block;
font-size: 10px;
margin: 0 6px;
width: 37px;
text-transform: uppercase;
}
div#react_share_form .suggest-search.icon-search {
Expand All @@ -38,6 +43,23 @@ div#react_share_form .suggest-search.icon-search {
right: 15px;
top: 2px;
}
div#react_share_form div.share-form-users .react-autosuggest input#users-autosuggest {
font-size: 13px;
padding-bottom: 8px !important;
padding-left: 0 !important;
margin-top: 11px;
width: 340px;
}
div#react_share_form div.share-form-users .react-autosuggest input#users-autosuggest ::-webkit-input-placeholder,
div#react_share_form div.share-form-users .react-autosuggest input#users-autosuggest ::-moz-placeholder {
color: rgba(0, 0, 0, 0.3);
}
div#react_share_form div.share-form-users .react-autosuggest .react-autosuggest__suggestions {
width: 340px;
}
div#react_share_form div.share-form-users .suggest-search.icon-search {
top: 12px;
}
div#react_share_form .additional-actions-links {
text-align: right;
margin-top: 6px;
Expand Down Expand Up @@ -254,7 +276,6 @@ div#react_share_form div.remote-users-add {
display: -webkit-flex;
display: flex;
margin-top: -23px;
padding-left: 12px;
}
div#react_share_form div.remote-users-add div.host {
width: 66%;
Expand All @@ -263,6 +284,7 @@ div#react_share_form div.remote-users-add div.host {
div#react_share_form div.remote-users-add div.user {
margin-top: 1px;
width: 40%;
background-color: transparent;
}
div#react_share_form div.remote-users-add button.mui-icon-button {
margin-top: 26px;
Expand All @@ -278,7 +300,7 @@ div#react_share_form a.revert-button {
cursor: pointer;
}
div.react-autosuggest {
padding-left: 4px;
padding-left: 1px;
}
div.react-autosuggest li.react-autosuggest__suggestion .user-badge {
display: block !important;
Expand Down
30 changes: 28 additions & 2 deletions core/src/plugins/action.share/res/react-share-form.less
Expand Up @@ -25,6 +25,9 @@ div#react_share_form {
font-family: FontAwesome;
}
font-size:13px;
label.mui-switch-label {
white-space: nowrap;
}
div.headerPanel {
background-color: @color0 !important;
}
Expand All @@ -40,10 +43,12 @@ div#react_share_form {
color: #ADADAD;
padding-right: 50px;
text-align: right;
margin-top: 10px;
span {
display: inline-block;
font-size: 10px;
margin: 0 6px;
width: 37px;
text-transform: uppercase;
}
}
Expand All @@ -54,6 +59,26 @@ div#react_share_form {
right: 15px;
top: 2px;
}
div.share-form-users{
.react-autosuggest{
input#users-autosuggest{
font-size: 13px;
padding-bottom: 8px !important;
padding-left: 0 !important;
margin-top: 11px;
width: 340px;
::-webkit-input-placeholder, ::-moz-placeholder{
color:rgba(0,0,0,0.3);
}
}
.react-autosuggest__suggestions {
width: 340px;
}
}
.suggest-search.icon-search{
top:12px;
}
}
.additional-actions-links{
text-align: right;
margin-top: 6px;
Expand Down Expand Up @@ -278,14 +303,14 @@ div#react_share_form {
div.remote-users-add{
display: flex;
margin-top: -23px;
padding-left: 12px;
div.host{
width: 66%;
margin-right: 6px;
}
div.user{
margin-top: 1px;
width: 40%;
background-color: transparent;
}
button.mui-icon-button{
margin-top: 26px;
Expand All @@ -304,7 +329,7 @@ div#react_share_form {
}

div.react-autosuggest {
padding-left: 4px;
padding-left: 1px;
li.react-autosuggest__suggestion{
.user-badge{
display: block !important;
Expand Down Expand Up @@ -333,6 +358,7 @@ div.react-autosuggest {
padding-left: 4px !important;
}
}

.dialogContent div.reset-pydio-forms{
input{
border:0;
Expand Down

0 comments on commit 4202176

Please sign in to comment.