mirror of
https://github.com/documize/community.git
synced 2025-07-20 21:59:42 +02:00
Make document meta fields click-to-edit
This commit is contained in:
parent
b495041222
commit
6f495dd1c6
4 changed files with 4 additions and 5 deletions
|
@ -52,9 +52,9 @@ export default Component.extend(Modals, {
|
|||
|
||||
actions: {
|
||||
onEditCategory() {
|
||||
if (!this.get('permissions.spaceManage')) return;
|
||||
if (!this.get('permissions.documentEdit')) return;
|
||||
|
||||
this.get('router').transitionTo('document.settings', {queryParams: {tab: 'meta'}});
|
||||
this.get('router').transitionTo('document.settings', {queryParams: {tab: 'category'}});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
|
||||
{{ui/ui-spacer size=400}}
|
||||
|
||||
<div class="document-meta">
|
||||
<div class="document-meta {{if permissions.documentEdit "cursor-pointer"}}" {{action "onEditMeta"}}>
|
||||
<div class="document-heading">
|
||||
<h1 class="name">{{document.name}}</h1>
|
||||
<h2 class="desc">{{document.excerpt}}</h2>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{{#layout/master-sidebar}}
|
||||
{{ui/ui-spacer size=300}}
|
||||
|
||||
<div class="section">
|
||||
{{#link-to "document.index"}}
|
||||
{{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.ArrowLeft label="Document"}}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
{{ui/ui-spacer size=300}}
|
||||
|
||||
<div class="title">CATEGORY / TAG</div>
|
||||
<div class="title {{if permissions.documentEdit "cursor-pointer"}}" {{action "onEditCategory"}}>CATEGORY / TAG</div>
|
||||
{{#each selectedCategories as |cat|}}
|
||||
<div class="meta-label">
|
||||
<i class="dicon {{constants.Icon.Category}}"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue