mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Carded notifications
This commit is contained in:
parent
3d2a47627f
commit
195f9d9d27
12 changed files with 147 additions and 44 deletions
|
@ -8,14 +8,14 @@ define([
|
|||
], function (App, Marionette, NotificationCollection, NotificationItemView, AddSelectionNotificationView) {
|
||||
return Marionette.CompositeView.extend({
|
||||
itemView : NotificationItemView,
|
||||
itemViewContainer: 'tbody',
|
||||
itemViewContainer: '.notifications',
|
||||
template : 'Settings/Notifications/CollectionTemplate',
|
||||
|
||||
events: {
|
||||
'click .x-add': 'openSchemaModal'
|
||||
'click .x-add': '_openSchemaModal'
|
||||
},
|
||||
|
||||
openSchemaModal: function () {
|
||||
_openSchemaModal: function () {
|
||||
var schemaCollection = new NotificationCollection();
|
||||
schemaCollection.url = '/api/notification/schema';
|
||||
schemaCollection.fetch();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue