2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.regexpError}}
|
|
|
|
<div class="alert alert-error">{{this.regexpError}}</div>
|
2021-05-27 12:42:43 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2021-03-09 04:52:12 -05:00
|
|
|
<div class="watched-word-controls">
|
2022-07-05 13:41:31 -04:00
|
|
|
<DButton
|
|
|
|
@class="btn-default download-link"
|
|
|
|
@href={{this.downloadLink}}
|
|
|
|
@icon="download"
|
|
|
|
@label="admin.watched_words.download"
|
|
|
|
/>
|
2022-06-30 06:30:50 -04:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<WatchedWordUploader
|
|
|
|
@id="watched-word-uploader"
|
|
|
|
@uploading={{this.uploading}}
|
|
|
|
@actionKey={{this.actionNameKey}}
|
|
|
|
@done={{action "uploadComplete"}}
|
|
|
|
/>
|
2022-06-30 06:30:50 -04:00
|
|
|
|
|
|
|
<DButton
|
|
|
|
@class="watched-word-test"
|
|
|
|
@label="admin.watched_words.test.button_label"
|
|
|
|
@icon="far-eye"
|
|
|
|
@action={{action "test"}}
|
|
|
|
/>
|
|
|
|
|
|
|
|
<DButton
|
|
|
|
@class="btn-danger clear-all"
|
|
|
|
@label="admin.watched_words.clear_all"
|
|
|
|
@icon="trash-alt"
|
|
|
|
@action={{action "clearAll"}}
|
|
|
|
/>
|
2018-07-02 23:14:53 -04:00
|
|
|
</div>
|
2019-07-22 07:59:56 -04:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<p class="about">{{this.actionDescription}}</p>
|
2021-02-25 07:00:58 -05:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.siteSettings.watched_words_regular_expressions}}
|
2021-06-25 05:08:52 -04:00
|
|
|
<p>{{html-safe
|
|
|
|
(i18n "admin.watched_words.regex_warning" basePath=(base-path))
|
|
|
|
}}</p>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<WatchedWordForm
|
|
|
|
@actionKey={{this.actionNameKey}}
|
|
|
|
@action={{action "recordAdded"}}
|
|
|
|
@filteredContent={{this.currentAction.words}}
|
|
|
|
/>
|
2021-02-25 07:00:58 -05:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.currentAction.words}}
|
2018-02-26 16:35:43 -05:00
|
|
|
<label class="show-words-checkbox">
|
2022-07-06 04:37:54 -04:00
|
|
|
<Input
|
|
|
|
@type="checkbox"
|
|
|
|
@checked={{this.adminWatchedWords.showWords}}
|
|
|
|
disabled={{this.adminWatchedWords.disableShowWords}}
|
|
|
|
/>
|
2022-07-05 13:41:31 -04:00
|
|
|
{{i18n
|
|
|
|
"admin.watched_words.show_words"
|
|
|
|
count=this.currentAction.words.length
|
|
|
|
}}
|
2018-02-26 16:35:43 -05:00
|
|
|
</label>
|
2021-02-25 07:00:58 -05:00
|
|
|
{{/if}}
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.showWordsList}}
|
|
|
|
<div class="watched-words-list watched-words-{{this.actionNameKey}}">
|
|
|
|
{{#each this.currentAction.words as |word|}}
|
|
|
|
<div class="watched-word-box"><AdminWatchedWord
|
|
|
|
@actionKey={{this.actionNameKey}}
|
|
|
|
@word={{word}}
|
|
|
|
@action={{action "recordRemoved"}}
|
|
|
|
/></div>
|
2017-06-28 16:56:44 -04:00
|
|
|
{{/each}}
|
2021-02-25 07:00:58 -05:00
|
|
|
</div>
|
|
|
|
{{/if}}
|