From 3442fdfee6e23e7dab24c57009be9265bb308045 Mon Sep 17 00:00:00 2001 From: Princi Vershwal Date: Tue, 3 Oct 2023 14:43:11 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E2=9C=A8=20Show=20specific=20ti?= =?UTF-8?q?er=20posts=20under=20'Paid-member=20only'=20filter=20in=20admin?= =?UTF-8?q?=20panel=20(#17043)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes https://github.com/TryGhost/Ghost/issues/16988 --- ghost/admin/app/controllers/posts.js | 2 +- ghost/admin/tests/acceptance/content-test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/admin/app/controllers/posts.js b/ghost/admin/app/controllers/posts.js index 375736a28c..ff7707a04b 100644 --- a/ghost/admin/app/controllers/posts.js +++ b/ghost/admin/app/controllers/posts.js @@ -37,7 +37,7 @@ const VISIBILITIES = [{ value: 'members' }, { name: 'Paid members-only', - value: 'paid' + value: '[paid,tiers]' }]; const ORDERS = [{ diff --git a/ghost/admin/tests/acceptance/content-test.js b/ghost/admin/tests/acceptance/content-test.js index 7eea8bd7f3..2235667d34 100644 --- a/ghost/admin/tests/acceptance/content-test.js +++ b/ghost/admin/tests/acceptance/content-test.js @@ -101,7 +101,7 @@ describe('Acceptance: Content', function () { await selectChoose('[data-test-visibility-select]', 'Paid members-only'); [lastRequest] = this.server.pretender.handledRequests.slice(-1); expect(lastRequest.queryParams.filter, '"visibility" request filter param') - .to.have.string('visibility:paid+status:[draft,scheduled,published]'); + .to.have.string('visibility:[paid,tiers]+status:[draft,scheduled,published]'); // Displays editor post // TODO: implement "filter" param support and fix mirage post->author association