mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-01 02:41:39 -05:00
Hid post access context menu action when members are disabled
refs https://github.com/TryGhost/Team/issues/2922
This commit is contained in:
parent
c4dd980421
commit
c8d715167a
2 changed files with 8 additions and 5 deletions
|
@ -27,11 +27,13 @@
|
|||
<span>{{svg-jar "tag"}}Add a tag</span>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="mr2" type="button" {{on "click" this.editPostsAccess}}>
|
||||
<span>{{svg-jar "lock"}}Change access</span>
|
||||
</button>
|
||||
</li>
|
||||
{{#if this.membersUtils.isMembersEnabled}}
|
||||
<li>
|
||||
<button class="mr2" type="button" {{on "click" this.editPostsAccess}}>
|
||||
<span>{{svg-jar "lock"}}Change access</span>
|
||||
</button>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#if this.session.user.isAdmin}}
|
||||
<li>
|
||||
<button class="mr2" type="button" {{on "click" this.deletePosts}}>
|
||||
|
|
|
@ -43,6 +43,7 @@ export default class PostsContextMenu extends Component {
|
|||
@service infinity;
|
||||
@service store;
|
||||
@service notifications;
|
||||
@service membersUtils;
|
||||
|
||||
get menu() {
|
||||
return this.args.menu;
|
||||
|
|
Loading…
Add table
Reference in a new issue