remove icon as mandatory confirm parameter
parent
021b56bb9f
commit
185b77cadd
|
@ -169,6 +169,7 @@ class ConfirmService extends taiga.Service
|
|||
el.find("img").remove()
|
||||
el.find("svg").remove()
|
||||
|
||||
if icon
|
||||
if icon.type == "img"
|
||||
detailImage = $('<img>').addClass('lb-icon').attr('src', icon.name)
|
||||
else if icon.type == "svg"
|
||||
|
|
|
@ -77,3 +77,17 @@ notifications.errorLight.open = function() {
|
|||
});
|
||||
});
|
||||
};
|
||||
|
||||
notifications.errorLight.close = function() {
|
||||
var el = $('.notification-message-light-error');
|
||||
|
||||
return browser
|
||||
.wait(function() {
|
||||
return common.hasClass(el, 'inactive');
|
||||
}, 4000)
|
||||
.then(function(active) {
|
||||
return browser.sleep(transition).then(function() {
|
||||
return active;
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue