mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
signalr cleanup
This commit is contained in:
parent
feda4a9b67
commit
25e2c98c45
219 changed files with 2035 additions and 1495 deletions
|
@ -1,13 +1,14 @@
|
|||
'use strict';
|
||||
define(function () {
|
||||
return {
|
||||
|
||||
show: function (options) {
|
||||
|
||||
if (!options.type) {
|
||||
options.type = 'info';
|
||||
}
|
||||
|
||||
if (!options.hideAfter) {
|
||||
if (options.hideAfter === undefined) {
|
||||
switch (options.type) {
|
||||
case 'info':
|
||||
options.hideAfter = 5;
|
||||
|
@ -18,7 +19,7 @@ define(function () {
|
|||
break;
|
||||
|
||||
default :
|
||||
options.hideAfter = 0;
|
||||
options.hideAfter = 5;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,6 +32,7 @@ define(function () {
|
|||
});
|
||||
},
|
||||
|
||||
|
||||
monitor: function (options) {
|
||||
|
||||
if (!options.promise) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue