0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added collection filter input to the Admin UI

refs https://github.com/TryGhost/Arch/issues/41

- Having a filter input for an automatic collection make it way easier to test things without messing with the database.
This commit is contained in:
Naz 2023-07-18 16:17:43 +08:00 committed by naz
parent 9ce0c92597
commit f4301b16e8

View file

@ -72,6 +72,17 @@
{{#if (eq this.selectedType.value 'manual')}}
<p>Add posts to this collection one by one through post settings menu.</p>
{{/if}}
{{#if (eq this.selectedType.value 'automatic')}}
<input type="text"
class="gh-input"
id="collection-filter"
name="filter"
value={{@collection.filter}}
{{on "input" (pick "target.value" (fn this.setCollectionProperty "filter" ))}}
{{on "blur" (fn this.validateCollectionProperty "filter" )}}
data-test-input="collection-filter" />
{{/if}}
</div>
</GhFormGroup>
</div>