mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 05:16:34 +02:00
Improved PushBullet implementation (v2 API, multiple devices, channels)
New: PushBullet supports multiple devices New: PushBullet channels Closes #641
This commit is contained in:
@@ -6,6 +6,7 @@ var AsValidatedView = require('../../../Mixins/AsValidatedView');
|
||||
var AsEditModalView = require('../../../Mixins/AsEditModalView');
|
||||
require('../../../Form/FormBuilder');
|
||||
require('../../../Mixins/TagInput');
|
||||
require('bootstrap.tagsinput');
|
||||
|
||||
var view = Marionette.ItemView.extend({
|
||||
template : 'Settings/Notifications/Edit/NotificationEditViewTemplate',
|
||||
@@ -13,7 +14,8 @@ var view = Marionette.ItemView.extend({
|
||||
ui : {
|
||||
onDownloadToggle : '.x-on-download',
|
||||
onUpgradeSection : '.x-on-upgrade',
|
||||
tags : '.x-tags'
|
||||
tags : '.x-tags',
|
||||
formTag : '.x-form-tag'
|
||||
},
|
||||
|
||||
events : {
|
||||
@@ -29,10 +31,16 @@ var view = Marionette.ItemView.extend({
|
||||
|
||||
onRender : function() {
|
||||
this._onDownloadChanged();
|
||||
|
||||
this.ui.tags.tagInput({
|
||||
model : this.model,
|
||||
property : 'tags'
|
||||
});
|
||||
|
||||
this.ui.formTag.tagsinput({
|
||||
trimValue : true,
|
||||
tagClass : 'label label-default'
|
||||
});
|
||||
},
|
||||
|
||||
_onAfterSave : function() {
|
||||
|
Reference in New Issue
Block a user