modify text
This commit is contained in:
parent
3963e7be45
commit
99530eab6c
|
@ -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 === 'Not Connected'}" ng-bind="taskContext.rpcStatus | translate"></span>
|
<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>
|
||||||
<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>
|
||||||
|
|
|
@ -9,7 +9,7 @@ True=是
|
||||||
False=否
|
False=否
|
||||||
Connecting=连接中
|
Connecting=连接中
|
||||||
Connected=已连接
|
Connected=已连接
|
||||||
Not Connected=未连接
|
Disconnected=未连接
|
||||||
Global=全局
|
Global=全局
|
||||||
New=新建
|
New=新建
|
||||||
Start=开始任务
|
Start=开始任务
|
||||||
|
|
|
@ -9,7 +9,7 @@ True=是
|
||||||
False=否
|
False=否
|
||||||
Connecting=連線中
|
Connecting=連線中
|
||||||
Connected=已連線
|
Connected=已連線
|
||||||
Not Connected=未連線
|
Disconnected=未連線
|
||||||
Global=全域
|
Global=全域
|
||||||
New=新增
|
New=新增
|
||||||
Start=開始工作
|
Start=開始工作
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
'False': 'False',
|
'False': 'False',
|
||||||
'Connecting': 'Connecting',
|
'Connecting': 'Connecting',
|
||||||
'Connected': 'Connected',
|
'Connected': 'Connected',
|
||||||
'Not Connected': 'Not Connected',
|
'Disconnected': 'Disconnected',
|
||||||
'Global': 'Global',
|
'Global': 'Global',
|
||||||
'New': 'New',
|
'New': 'New',
|
||||||
'Start': 'Start',
|
'Start': 'Start',
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
$scope.context.status = 'Connected';
|
$scope.context.status = 'Connected';
|
||||||
$scope.context.serverStatus = response.data;
|
$scope.context.serverStatus = response.data;
|
||||||
} else {
|
} else {
|
||||||
$scope.context.status = 'Not Connected';
|
$scope.context.status = 'Disconnected';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -203,7 +203,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
aria2TaskService.onConnectError(function () {
|
aria2TaskService.onConnectError(function () {
|
||||||
$rootScope.taskContext.rpcStatus = 'Not Connected';
|
$rootScope.taskContext.rpcStatus = 'Disconnected';
|
||||||
});
|
});
|
||||||
|
|
||||||
aria2TaskService.onTaskCompleted(function (event) {
|
aria2TaskService.onTaskCompleted(function (event) {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<span translate>Aria2 Status</span>
|
<span translate>Aria2 Status</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-value col-sm-8">
|
<div class="setting-value col-sm-8">
|
||||||
<span class="label" ng-class="{'label-primary': context.status === 'Connecting', 'label-success': context.status === 'Connected', 'label-danger': context.status === 'Not Connected'}"
|
<span class="label" ng-class="{'label-primary': context.status === 'Connecting', 'label-success': context.status === 'Connected', 'label-danger': context.status === 'Disconnected'}"
|
||||||
ng-bind="context.status | translate"></span>
|
ng-bind="context.status | translate"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in a new issue