fix setting option always show error tool-tip bug
This commit is contained in:
parent
bb767eee9a
commit
9475694a95
|
@ -13,7 +13,7 @@
|
||||||
globalStatStorageCapacity: 120,
|
globalStatStorageCapacity: 120,
|
||||||
taskStatStorageCapacity: 300,
|
taskStatStorageCapacity: 300,
|
||||||
lazySaveTimeout: 500,
|
lazySaveTimeout: 500,
|
||||||
errorTooltipDelay: 200,
|
errorTooltipDelay: 500,
|
||||||
notificationInPageTimeout: 2000
|
notificationInPageTimeout: 2000
|
||||||
}).constant('ariaNgFileTypes', {
|
}).constant('ariaNgFileTypes', {
|
||||||
video: [
|
video: [
|
||||||
|
|
|
@ -32,6 +32,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$timeout(function () {
|
$timeout(function () {
|
||||||
|
var currentValue = scope.optionStatus.getValue();
|
||||||
|
|
||||||
|
if (currentValue !== 'failed' && currentValue !== 'error') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
angular.element(element).tooltip({
|
angular.element(element).tooltip({
|
||||||
title: $translate.instant(cause, causeParams),
|
title: $translate.instant(cause, causeParams),
|
||||||
trigger: 'focus',
|
trigger: 'focus',
|
||||||
|
|
Reference in a new issue