mirror of
https://github.com/discourse/discourse.git
synced 2026-08-10 04:58:31 -05:00
ES6: Notification controllers, added helper to create via ES6/container
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
Discourse.NotificationController = Discourse.ObjectController.extend({
|
||||
export default Discourse.ObjectController.extend({
|
||||
scope: function() {
|
||||
return "notifications." + Discourse.Site.currentProp("notificationLookup")[this.get("notification_type")];
|
||||
}.property(),
|
||||
@@ -0,0 +1,4 @@
|
||||
export default Ember.ArrayController.extend(Discourse.HasCurrentUser, {
|
||||
needs: ['header'],
|
||||
itemController: "notification"
|
||||
});
|
||||
@@ -1,4 +0,0 @@
|
||||
Discourse.NotificationsController = Ember.ArrayController.extend(Discourse.HasCurrentUser, {
|
||||
needs: ['header'],
|
||||
itemController: "notification"
|
||||
});
|
||||
Reference in New Issue
Block a user