FIX: don't allow duplicate watched words (#5844)

We already have logic in place for server side, this'll just display a little message that says the word already exists
This commit is contained in:
OsamaSayegh
2018-05-18 11:11:08 +03:00
committed by Régis Hanol
parent c168639be2
commit 0800098f1a
4 changed files with 21 additions and 7 deletions

View File

@@ -2,6 +2,6 @@
{{text-field value=word disabled=formSubmitted class="watched-word-input" autocorrect="off" autocapitalize="off" placeholderKey=placeholderKey}}
{{d-button action="submit" disabled=formSubmitted label="admin.watched_words.form.add"}}
{{#if showSuccessMessage}}
<span class="success-message">{{i18n 'admin.watched_words.form.success'}}</span>
{{#if showMessage}}
<span class="success-message">{{message}}</span>
{{/if}}