From 59367d418beeb9374554db1e1ead77d1c266908a Mon Sep 17 00:00:00 2001 From: Rishabh Date: Mon, 28 Jun 2021 15:37:33 +0530 Subject: [PATCH] Added option to hide labels for post acces refs https://github.com/TryGhost/Team/issues/800 - makes labels option in members segment select - hides label options in segment select for post access --- ghost/admin/app/components/gh-members-segment-select.js | 2 +- ghost/admin/app/components/gh-post-settings-menu-labs.hbs | 1 + ghost/admin/app/components/gh-post-settings-menu.hbs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ghost/admin/app/components/gh-members-segment-select.js b/ghost/admin/app/components/gh-members-segment-select.js index bacdeb4185..a85365cf6e 100644 --- a/ghost/admin/app/components/gh-members-segment-select.js +++ b/ghost/admin/app/components/gh-members-segment-select.js @@ -73,7 +73,7 @@ export default class GhMembersSegmentSelect extends Component { // TODO: add `include: 'count.members` to query once API is fixed const labels = yield this.store.query('label', {limit: 'all'}); - if (labels.length > 0) { + if (labels.length > 0 && !this.args.hideLabels) { const labelsGroup = { groupName: 'Labels', options: [] diff --git a/ghost/admin/app/components/gh-post-settings-menu-labs.hbs b/ghost/admin/app/components/gh-post-settings-menu-labs.hbs index efd446283c..71552acc1b 100644 --- a/ghost/admin/app/components/gh-post-settings-menu-labs.hbs +++ b/ghost/admin/app/components/gh-post-settings-menu-labs.hbs @@ -101,6 +101,7 @@
Members-only
Members-only