FIX: Adding multiple auto tags in watched words admin UI (#13421)

This commit is contained in:
Penar Musaraj 2021-06-17 13:42:16 -04:00 committed by GitHub
parent 95b51669ad
commit 36162cf396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 27 deletions

View File

@ -89,6 +89,7 @@ export default Component.extend({
word: "", word: "",
replacement: "", replacement: "",
formSubmitted: false, formSubmitted: false,
selectedTags: [],
showMessage: true, showMessage: true,
message: I18n.t("admin.watched_words.form.success"), message: I18n.t("admin.watched_words.form.success"),
}); });

View File

@ -16,10 +16,12 @@
{{tag-chooser {{tag-chooser
id="watched-tag" id="watched-tag"
class="watched-word-input-field" class="watched-word-input-field"
allowCreate=true
disabled=formSubmitted
tags=selectedTags tags=selectedTags
onChange=(action "changeSelectedTags") onChange=(action "changeSelectedTags")
options=(hash
allowAny=true
disabled=formSubmitted
)
}} }}
</div> </div>
{{/if}} {{/if}}
@ -31,7 +33,7 @@
</div> </div>
{{/if}} {{/if}}
{{d-button class="btn-default" action=(action "submit") disabled=formSubmitted label="admin.watched_words.form.add"}} {{d-button class="btn btn-primary" action=(action "submit") disabled=formSubmitted label="admin.watched_words.form.add"}}
{{#if showMessage}} {{#if showMessage}}
<span class="success-message">{{message}}</span> <span class="success-message">{{message}}</span>

View File

@ -406,6 +406,8 @@ table.screened-ip-addresses {
label { label {
display: inline-block; display: inline-block;
min-width: 150px; min-width: 150px;
padding-top: 4px;
vertical-align: top;
} }
input.watched-word-input-field { input.watched-word-input-field {
min-width: 300px; min-width: 300px;
@ -413,6 +415,10 @@ table.screened-ip-addresses {
.select-kit.multi-select.watched-word-input-field { .select-kit.multi-select.watched-word-input-field {
width: 300px; width: 300px;
} }
+ .btn-primary {
margin-top: 1em;
}
} }
// Search logs // Search logs

View File

@ -79,30 +79,8 @@
} }
} }
.filter { .multi-select-filter .filter-input {
white-space: nowrap; padding-left: 5px;
min-width: 50px;
padding: 0;
outline: none;
flex: 1;
display: flex;
.filter-input,
.filter-input:focus {
border: none;
background: none;
display: inline-block;
width: 100%;
outline: none;
min-width: auto;
padding: 0;
margin: 0;
outline: 0;
border: 0;
box-shadow: none;
border-radius: 0;
min-height: unset; // overrides input defaults
}
} }
.selected-color { .selected-color {