mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Couldn't collapse validation messages
This commit is contained in:
parent
0f9a009982
commit
355215ca91
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,8 @@ export default Ember.Component.extend(StringBuffer, {
|
||||||
rerenderTriggers: ['validation.reason'],
|
rerenderTriggers: ['validation.reason'],
|
||||||
|
|
||||||
click() {
|
click() {
|
||||||
this.set('shownAt', false);
|
this.set('shownAt', null);
|
||||||
|
this.set('validation.lastShownAt', null);
|
||||||
},
|
},
|
||||||
|
|
||||||
bad: Ember.computed.alias("validation.failed"),
|
bad: Ember.computed.alias("validation.failed"),
|
||||||
|
@ -40,8 +41,7 @@ export default Ember.Component.extend(StringBuffer, {
|
||||||
const reason = this.get('validation.reason');
|
const reason = this.get('validation.reason');
|
||||||
if (!reason) { return; }
|
if (!reason) { return; }
|
||||||
|
|
||||||
buffer.push("<span class='close'>" + iconHTML('times-circle') + "</span>");
|
buffer.push(`<span class='close'>${iconHTML('times-circle')}</span>${reason}`);
|
||||||
buffer.push(reason);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
bounceLeft($elem) {
|
bounceLeft($elem) {
|
||||||
|
|
Loading…
Reference in a new issue