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

Commit

Permalink
Fix Breadcrumb display when in RecycleBin
Browse files Browse the repository at this point in the history
Fix "Empty" action appearing only if a file is selected.
Upgrade "Index" icon.
  • Loading branch information
cdujeu committed May 23, 2017
1 parent cbbcbb1 commit b955172
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions core/src/plugins/access.fs/fsActions.xml
Expand Up @@ -85,9 +85,7 @@
</action>
<action name="empty_recycle">
<gui text="220" title="221" iconClass="mdi mdi-delete-forever" accessKey="empty_recycle_access_key" hasAccessKey="true">
<context selection="true" dir="true" recycle="only" actionBar="true"
contextMenu="true" infoPanel="false" actionBarGroup="change_main"/>
<selectionContext dir="false" file="false" recycle="true" unique="true"/>
<context selection="false" dir="true" recycle="only" actionBar="true" contextMenu="true" infoPanel="false" actionBarGroup="info_panel,change_main"/>
</gui>
<rightsContext noUser="true" userLogged="" read="true" write="true" adminOnly=""/>
<processing>
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/core.index/manifest.xml
Expand Up @@ -10,7 +10,7 @@
<registry_contributions>
<actions>
<action name="index">
<gui text="core.index.1" title="core.index.2" iconClass="icon-book" accessKey="folder_access_key">
<gui text="core.index.1" title="core.index.2" iconClass="mdi mdi-library-books" accessKey="folder_access_key">
<context selection="false" dir="true" recycle="hidden" actionBar="true" contextMenu="true" infoPanel="false" actionBarGroup="other" inZip="false"/>
</gui>
<rightsContext noUser="true" userLogged="only" read="true"
Expand Down
Expand Up @@ -71,17 +71,17 @@ let Breadcrumb = React.createClass({
repoLabel = pydio.user.repositories.get(pydio.user.activeRepository).getLabel();
}
let segments = [];
let path = this.state.node ? LangUtils.trimLeft(this.state.node.getPath(), '/') : '';
const path = this.state.node ? LangUtils.trimLeft(this.state.node.getPath(), '/') : '';
const label = this.state.node ? this.state.node.getLabel() : '';
let rebuilt = '';
let i = 0;
let mainStyle = this.props.rootStyle || {};
mainStyle = {...styles.main, ...mainStyle};
path.split('/').map(function(seg){
const parts = path.split('/');
parts.forEach(function(seg, i){
if(!seg) return;
rebuilt += '/' + seg;
segments.push(<span key={'bread_sep_' + i} className="separator"> / </span>);
segments.push(<span key={'bread_' + i} className="segment" onClick={this.goTo.bind(this, rebuilt)}>{seg}</span>);
i++;
segments.push(<span key={'bread_' + i} className="segment" onClick={this.goTo.bind(this, rebuilt)}>{i===parts.length-1 ? label : seg}</span>);
}.bind(this));
return (
<Textfit mode="single" perfectFit={false} min={12} max={22} className="react_breadcrumb" style={mainStyle}>
Expand Down

0 comments on commit b955172

Please sign in to comment.