Final dirty diff cleanup
This commit is contained in:
parent
69bc552054
commit
5994b630b7
|
@ -17,10 +17,12 @@ Discourse.NotificationContainer.reopenClass({
|
|||
},
|
||||
|
||||
loadRecent: function() {
|
||||
// TODO - add .json (breaks tests atm)
|
||||
return Discourse.ajax('/notifications').then(function(result) {
|
||||
return Discourse.NotificationContainer.createFromJson(result);
|
||||
}).catch(function(error) {
|
||||
// HeaderController can't handle it properly
|
||||
// TODO HeaderController can't handle a createFromError
|
||||
// just throw for now
|
||||
throw error;
|
||||
});
|
||||
},
|
||||
|
|
|
@ -10,11 +10,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
{{else}}
|
||||
{{#if error}}
|
||||
<div class="none error">{{i18n notifications.none}}</div>
|
||||
{{else}}
|
||||
<div class="none">{{i18n notifications.none}}</div>
|
||||
{{/if}}
|
||||
<div class="none">{{i18n notifications.none}}</div>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<div class='loading'><i class='fa fa-spinner fa-spin'></i></div>
|
||||
|
|
Loading…
Reference in New Issue