always show aria2 status when connect aria2 via websocket
This commit is contained in:
parent
de5884e94e
commit
b57381cb0c
|
@ -240,7 +240,7 @@
|
||||||
</li>
|
</li>
|
||||||
<li data-href-match="/status">
|
<li data-href-match="/status">
|
||||||
<a href="#!/status">
|
<a href="#!/status">
|
||||||
<span class="label pull-right" ng-if="globalStatusContext.isEnabled" ng-class="{'label-primary': taskContext.rpcStatus === 'Connecting', 'label-success': taskContext.rpcStatus === 'Connected', 'label-danger': taskContext.rpcStatus === 'Disconnected'}" ng-bind="taskContext.rpcStatus | translate"></span>
|
<span class="label pull-right" ng-if="globalStatusContext.isEnabled || isCurrentRpcUseWebSocket" ng-class="{'label-primary': taskContext.rpcStatus === 'Connecting', 'label-success': taskContext.rpcStatus === 'Connected', 'label-danger': taskContext.rpcStatus === 'Disconnected'}" ng-bind="taskContext.rpcStatus | translate"></span>
|
||||||
<i class="fa fa-server"></i> <span translate>Aria2 Status</span>
|
<i class="fa fa-server"></i> <span translate>Aria2 Status</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -63,6 +63,7 @@
|
||||||
$scope.quickSettingContext = null;
|
$scope.quickSettingContext = null;
|
||||||
|
|
||||||
$scope.rpcSettings = ariaNgSettingService.getAllRpcSettings();
|
$scope.rpcSettings = ariaNgSettingService.getAllRpcSettings();
|
||||||
|
$scope.isCurrentRpcUseWebSocket = ariaNgSettingService.isCurrentRpcUseWebSocket();
|
||||||
|
|
||||||
$scope.isTaskSelected = function () {
|
$scope.isTaskSelected = function () {
|
||||||
return $rootScope.taskContext.getSelectedTaskIds().length > 0;
|
return $rootScope.taskContext.getSelectedTaskIds().length > 0;
|
||||||
|
|
Reference in a new issue