|
|
|
@ -65,6 +65,7 @@ angular.module('openproject.timelines.directives') |
|
|
|
|
if(scope.updateToolbar) scope.updateToolbar(); |
|
|
|
|
|
|
|
|
|
scope.underConstruction = false; |
|
|
|
|
scope.warning = false; |
|
|
|
|
|
|
|
|
|
scope.timeline.getChart().scroll(function() { |
|
|
|
|
scope.timeline.adjustTooltip(); |
|
|
|
@ -75,6 +76,12 @@ angular.module('openproject.timelines.directives') |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
showWarning = function(){ |
|
|
|
|
scope.underConstruction = false; |
|
|
|
|
scope.warning = true; |
|
|
|
|
scope.$apply(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
buildWorkPackageTable = function(timeline){ |
|
|
|
|
if (timeline.isGrouping() && timeline.options.grouping_two_enabled) { |
|
|
|
|
timeline.secondLevelGroupingAdjustments(); |
|
|
|
@ -98,10 +105,10 @@ angular.module('openproject.timelines.directives') |
|
|
|
|
try { |
|
|
|
|
window.clearTimeout(timeline.safetyHook); |
|
|
|
|
|
|
|
|
|
if (rows.length > 0) { |
|
|
|
|
if (scope.rows.length > 0) { |
|
|
|
|
completeUI(); |
|
|
|
|
} else { |
|
|
|
|
timeline.warn(I18n.t('js.label_no_data'), 'warning'); |
|
|
|
|
timeline.warn(I18n.t('js.label_no_data'), 'warning', this.showWarning); |
|
|
|
|
} |
|
|
|
|
} catch (e) { |
|
|
|
|
timeline.die(e); |
|
|
|
|