modify method name
This commit is contained in:
parent
b1f35d12ea
commit
7b7c322d22
|
@ -3,8 +3,8 @@
|
|||
|
||||
angular.module('ariaNg').controller('Aria2StatusController', ['$rootScope', '$scope', 'ariaNgCommonService', 'aria2SettingService', function ($rootScope, $scope, ariaNgCommonService, aria2SettingService) {
|
||||
$rootScope.loadPromise = (function () {
|
||||
return aria2SettingService.getServerStatus(function (result) {
|
||||
$scope.serverStatus = result;
|
||||
return aria2SettingService.getAria2Status(function (result) {
|
||||
$scope.aria2Status = result;
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@
|
|||
callback: callback
|
||||
});
|
||||
},
|
||||
getServerStatus: function (callback) {
|
||||
getAria2Status: function (callback) {
|
||||
return aria2RpcService.getVersion({
|
||||
callback: callback
|
||||
})
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<span translate>Aria2 Version</span>
|
||||
</div>
|
||||
<div class="setting-value col-sm-8">
|
||||
<span ng-bind="serverStatus.version"></span>
|
||||
<span ng-bind="aria2Status.version"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
@ -13,10 +13,10 @@
|
|||
<span translate>Enabled Features</span>
|
||||
</div>
|
||||
<div class="setting-value col-sm-8">
|
||||
<span class="wholeline" ng-repeat="feature in serverStatus.enabledFeatures" ng-bind="feature"></span>
|
||||
<span class="wholeline" ng-repeat="feature in aria2Status.enabledFeatures" ng-bind="feature"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row ng-cloak" ng-if="serverStatus">
|
||||
<div class="row ng-cloak" ng-if="aria2Status">
|
||||
<div class="setting-key setting-key-without-desc col-sm-4">
|
||||
<span translate>Functions</span>
|
||||
</div>
|
||||
|
|
Reference in a new issue