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:
parent
9ce0c92597
commit
f4301b16e8
1 changed files with 11 additions and 0 deletions
|
@ -72,6 +72,17 @@
|
||||||
{{#if (eq this.selectedType.value 'manual')}}
|
{{#if (eq this.selectedType.value 'manual')}}
|
||||||
<p>Add posts to this collection one by one through post settings menu.</p>
|
<p>Add posts to this collection one by one through post settings menu.</p>
|
||||||
{{/if}}
|
{{/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>
|
</div>
|
||||||
</GhFormGroup>
|
</GhFormGroup>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue