changed notification auto remove time to 10 seconds

This commit is contained in:
Niels Lyngsø
2019-03-25 11:36:50 +01:00
parent 026ad4f2a8
commit e6720a175c

View File

@@ -85,17 +85,17 @@ angular.module('umbraco.services')
nArray.push(item); nArray.push(item);
if(!item.sticky) { if(!item.sticky) {
$timeout(function() { $timeout(
var found = _.find(nArray, function(i) { function() {
return i.id === item.id; var found = _.find(nArray, function(i) {
}); return i.id === item.id;
});
if (found) { if (found) {
var index = nArray.indexOf(found); var index = nArray.indexOf(found);
nArray.splice(index, 1); nArray.splice(index, 1);
} }
}
}, 7000); , 10000);
} }
return item; return item;