1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

Put settings link to new sidebar UX

Just above Search but below all other core app views.
This commit is contained in:
Harvey Kandola 2018-12-16 17:21:43 +00:00
parent 9f35cbb64a
commit 05a1db9d8a
3 changed files with 8 additions and 2 deletions

View file

@ -18,7 +18,7 @@ import Component from '@ember/component';
export default Component.extend(Modals, {
tagName: 'div',
classNames: ['master-sidebar-container', 'non-printable'],
selectedItem: 'spaces',
selectedItem: '',
folderService: service('folder'),
appMeta: service(),
session: service(),

View file

@ -1,4 +1,4 @@
{{#layout/master-sidebar}}
{{#layout/master-sidebar selectedItem="settings"}}
{{ui/ui-spacer size=300}}
<div class="section">

View file

@ -23,6 +23,12 @@
{{/link-to}}
{{/if}}
{{/if}}
{{#if (and session.authenticated session.isAdmin)}}
{{#link-to "customize.general" class=(if (eq selectedItem "settings") "option selected" "option")}}
<i class={{concat "dicon " constants.Icon.Settings}}></i>
<div class="name">Settings</div>
{{/link-to}}
{{/if}}
{{#link-to "search" class=(if (eq selectedItem "search") "option selected" "option")}}
<i class={{concat "dicon " constants.Icon.Search}}></i>
<div class="name">search</div>