changed loading to saveInProgress for v-busy button in configure directive
This commit is contained in:
parent
00d437ea1e
commit
218d96dc2b
@ -75,11 +75,11 @@ angular.module('forms').directive('configureFormDirective', ['$rootScope', '$sta
|
|||||||
}, 500);
|
}, 500);
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.loading = false;
|
$scope.saveInProgress = false;
|
||||||
$scope.saveChanges = function(){
|
$scope.saveChanges = function(){
|
||||||
$scope.loading = true;
|
$scope.saveInProgress = true;
|
||||||
$rootScope.update(false, $scope.myform, false, false, function(){
|
$rootScope.update(false, $scope.myform, false, false, function(){
|
||||||
$scope.loading = false;
|
$scope.saveInProgress = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-offset-4 col-sm-2">
|
<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-label="{{ 'WAIT_LABEL' | translate }}"
|
||||||
v-busy-text="{{ 'SAVE_CHANGES' | translate }}"
|
v-busy-text="{{ 'SAVE_CHANGES' | translate }}"
|
||||||
v-pressable ng-click="saveChanges()">
|
v-pressable ng-click="saveChanges()">
|
||||||
|
Loading…
Reference in New Issue
Block a user