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