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) {
|
angular.module('ariaNg').controller('Aria2StatusController', ['$rootScope', '$scope', 'ariaNgCommonService', 'aria2SettingService', function ($rootScope, $scope, ariaNgCommonService, aria2SettingService) {
|
||||||
$rootScope.loadPromise = (function () {
|
$rootScope.loadPromise = (function () {
|
||||||
return aria2SettingService.getServerStatus(function (result) {
|
return aria2SettingService.getAria2Status(function (result) {
|
||||||
$scope.serverStatus = result;
|
$scope.aria2Status = result;
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,7 @@
|
||||||
callback: callback
|
callback: callback
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getServerStatus: function (callback) {
|
getAria2Status: function (callback) {
|
||||||
return aria2RpcService.getVersion({
|
return aria2RpcService.getVersion({
|
||||||
callback: callback
|
callback: callback
|
||||||
})
|
})
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<span translate>Aria2 Version</span>
|
<span translate>Aria2 Version</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-value col-sm-8">
|
<div class="setting-value col-sm-8">
|
||||||
<span ng-bind="serverStatus.version"></span>
|
<span ng-bind="aria2Status.version"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -13,10 +13,10 @@
|
||||||
<span translate>Enabled Features</span>
|
<span translate>Enabled Features</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-value col-sm-8">
|
<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>
|
</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">
|
<div class="setting-key setting-key-without-desc col-sm-4">
|
||||||
<span translate>Functions</span>
|
<span translate>Functions</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in a new issue