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

Commit

Permalink
Do not display section title if list is empty - Fix #1154
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Apr 6, 2016
1 parent dac7652 commit 3435210
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions core/src/plugins/gui.ajax/res/js/ui/reactjs/jsx/LeftNavigation.js
Expand Up @@ -353,18 +353,29 @@
</div>
);
}

let workspacesTitle, sharedEntriesTitle, createActionTitle;
if(entries.length){
workspacesTitle = <div className="section-title">{messages[468]}</div>;
}
if(sharedEntries.length){
sharedEntriesTitle = <div className="section-title">{messages[469]}</div>;
}
if(createAction){
createActionTitle = <div className="section-title"></div>;
}

return (
<div>
<div className="section-title">{messages[468]}</div>
{workspacesTitle}
<div className="workspaces">
{entries}
</div>
<div className="section-title">{messages[469]}</div>
{sharedEntriesTitle}
<div className="workspaces">
{sharedEntries}
</div>
<div className="section-title"></div>
{createActionTitle}
{createAction}
</div>
);
Expand Down

1 comment on commit 3435210

@coziosco
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still the same issue displaying for me.... See attached after I've updated plugins/gui.ajax/res/js/ui/reactjs/jsx/LeftNavigation.js
screen shot 2016-04-11 at 16 00 11

Please sign in to comment.