mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
signalr cleanup
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user