Correct bug
This commit is contained in:
parent
2d99f1ecf2
commit
b6d7d2c30e
2 changed files with 8 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* @param {$scope} $scope The $scope service from angular
|
* @param {$scope} $scope The $scope service from angular
|
||||||
*/
|
*/
|
||||||
mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', 'Loading', function ($scope, Compute, $rootScope, Loading)
|
mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', 'Loading','Identity', function ($scope, Compute, $rootScope, Loading, Identity)
|
||||||
{
|
{
|
||||||
|
|
||||||
var callMeAfterPullData=function(data){
|
var callMeAfterPullData=function(data){
|
||||||
|
@ -11,8 +11,12 @@ mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', 'Loading', f
|
||||||
Loading.stop();
|
Loading.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
Loading.start();
|
;
|
||||||
Compute.pullData(callMeAfterPullData);
|
if(Compute.getData().machines == null && Identity.isAlreadyLogin()){
|
||||||
|
Loading.start();
|
||||||
|
Compute.pullData(callMeAfterPullData);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
||||||
|
Pour charger les machines, recharger la page (temporaire)<br />
|
||||||
Selectionner une machine:
|
Selectionner une machine:
|
||||||
<div ng-repeat="machine in machines"> <a ng-click="raiseShowMachineDetailsEvent(machine.id)"> {{ machine.name }}</a></div>
|
<div ng-repeat="machine in machines"> <a ng-click="raiseShowMachineDetailsEvent(machine.id)"> {{ machine.name }}</a></div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue