modify method name

This commit is contained in:
MaysWind 2016-06-10 15:45:19 +08:00
parent b1f35d12ea
commit 7b7c322d22
3 changed files with 6 additions and 6 deletions

View file

@ -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;
});
})();

View file

@ -120,7 +120,7 @@
callback: callback
});
},
getServerStatus: function (callback) {
getAria2Status: function (callback) {
return aria2RpcService.getVersion({
callback: callback
})

View file

@ -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>