hide speed chart when disable auto refresh
This commit is contained in:
parent
4c277d4204
commit
864372f2e9
|
@ -232,7 +232,7 @@
|
||||||
|
|
||||||
<span> </span>
|
<span> </span>
|
||||||
|
|
||||||
<div class="pull-right">
|
<div class="pull-right ng-cloak" ng-if="globalStatusContext.isEnabled">
|
||||||
<a class="global-status" ng-pop-chart ng-data="globalStatusContext.data" ng-container="body"
|
<a class="global-status" ng-pop-chart ng-data="globalStatusContext.data" ng-container="body"
|
||||||
ng-placement="top" ng-trigger="click hover" ng-popover-class="global-status-chart">
|
ng-placement="top" ng-trigger="click hover" ng-popover-class="global-status-chart">
|
||||||
<span class="realtime-speed">
|
<span class="realtime-speed">
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.globalStatusContext = {
|
$scope.globalStatusContext = {
|
||||||
|
isEnabled: ariaNgSettingService.getGlobalStatRefreshInterval() > 0,
|
||||||
data: ariaNgMonitorService.getGlobalStatsData()
|
data: ariaNgMonitorService.getGlobalStatsData()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -127,6 +127,7 @@
|
||||||
|
|
||||||
$scope.context = {
|
$scope.context = {
|
||||||
currentTab: 'overview',
|
currentTab: 'overview',
|
||||||
|
isEnableSpeedChart: ariaNgSettingService.getDownloadTaskRefreshInterval() > 0,
|
||||||
showChooseFilesToolbar: false,
|
showChooseFilesToolbar: false,
|
||||||
btPeers: [],
|
btPeers: [],
|
||||||
healthPercent: 0,
|
healthPercent: 0,
|
||||||
|
|
|
@ -146,7 +146,7 @@
|
||||||
ng-repeat="serverAddress in task.bittorrent.announceList | limitTo: (context.collapseTrackers ? 1 : task.bittorrent.announceList.length)"></div>
|
ng-repeat="serverAddress in task.bittorrent.announceList | limitTo: (context.collapseTrackers ? 1 : task.bittorrent.announceList.length)"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row no-hover no-background" ng-if="task && task.status == 'active'">
|
<div class="row no-hover no-background" ng-if="context.isEnableSpeedChart && task && task.status == 'active'">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div class="task-status-chart-wrapper">
|
<div class="task-status-chart-wrapper">
|
||||||
<ng-chart ng-data="context.statusData" height="200"></ng-chart>
|
<ng-chart ng-data="context.statusData" height="200"></ng-chart>
|
||||||
|
|
Reference in a new issue