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:
parent
9f35cbb64a
commit
05a1db9d8a
3 changed files with 8 additions and 2 deletions
|
@ -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(),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#layout/master-sidebar}}
|
||||
{{#layout/master-sidebar selectedItem="settings"}}
|
||||
{{ui/ui-spacer size=300}}
|
||||
|
||||
<div class="section">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue