mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
updated external library registrations.
This commit is contained in:
@@ -1,16 +1,21 @@
|
||||
define(['app'], function () {
|
||||
|
||||
NzbDrone.Shared.NotificationModel = Backbone.Model.extend({
|
||||
mutators: {
|
||||
pre: function () {
|
||||
if (this.get('message')) {
|
||||
return this.get('message').lines().lenght > 1;
|
||||
mutators:{
|
||||
pre:function () {
|
||||
try {
|
||||
if (this.get('message')) {
|
||||
return this.get('message').lines().lenght > 1;
|
||||
}
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
|
||||
},
|
||||
iconClass: function () {
|
||||
iconClass:function () {
|
||||
|
||||
if (this.has('icon')) {
|
||||
return "icon";
|
||||
return 'icon';
|
||||
}
|
||||
|
||||
if (this.get('level') === 'info') {
|
||||
@@ -25,10 +30,10 @@
|
||||
}
|
||||
},
|
||||
|
||||
defaults: {
|
||||
"level": "info",
|
||||
"title": "",
|
||||
"message": "",
|
||||
defaults:{
|
||||
"level":'info',
|
||||
"title":'',
|
||||
"message":''
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user