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

Commit

Permalink
Auto rename share label #1111
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Mar 24, 2016
1 parent ea0d4c1 commit 90bedb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions core/src/plugins/action.share/class.ShareStore.php
Expand Up @@ -597,6 +597,9 @@ public function moveSharesFromMeta($shares, $operation="move", $oldNode, $newNod
}

if(isSet($repo)){
if($newNode != null && $newNode->getLabel() != $oldNode->getLabel() && $repo->getDisplay() == $oldNode->getLabel()){
$repo->setDisplay($newNode->getLabel());
}
$cFilter = $repo->getContentFilter();
$path = $repo->getOption("PATH", true);
$save = false;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/res/react/ShareDialog.js
Expand Up @@ -190,7 +190,7 @@
return (
<div className="headerPanel">
<div
style={{fontSize: 24, color:'white', padding:'20px 16px 14px'}}
style={{fontSize: 24, color:'white', padding:'20px 16px 14px', wordBreak:'break-all'}}
>{this.context.getMessage('44').replace('%s', PathUtils.getBasename(this.props.shareModel.getNode().getPath()))}</div>
</div>
);
Expand Down

0 comments on commit 90bedb8

Please sign in to comment.