changed loading to saveInProgress for v-busy button in configure directive

This commit is contained in:
David Baldwynn 2017-11-20 20:27:14 -08:00
parent 00d437ea1e
commit 218d96dc2b
2 changed files with 4 additions and 4 deletions

View file

@ -75,11 +75,11 @@ angular.module('forms').directive('configureFormDirective', ['$rootScope', '$sta
}, 500);
});
$scope.loading = false;
$scope.saveInProgress = false;
$scope.saveChanges = function(){
$scope.loading = true;
$scope.saveInProgress = true;
$rootScope.update(false, $scope.myform, false, false, function(){
$scope.loading = false;
$scope.saveInProgress = false;
});
};
}

View file

@ -9,7 +9,7 @@
<div class="row">
<div class="col-sm-offset-4 col-sm-2">
<button class="btn btn-signup btn-rounded" v-busy="loading"
<button class="btn btn-signup btn-rounded" v-busy="saveInProgress"
v-busy-label="{{ 'WAIT_LABEL' | translate }}"
v-busy-text="{{ 'SAVE_CHANGES' | translate }}"
v-pressable ng-click="saveChanges()">