mirror of
https://github.com/harness/drone.git
synced 2025-05-09 02:01:07 +08:00
13 lines
341 B
JavaScript
13 lines
341 B
JavaScript
'use strict';
|
|
|
|
angular.module('app').controller("LoginController", function($scope, $http, remotes) {
|
|
$scope.state=0
|
|
$scope.user = remotes.getLogins().success(function (data) {
|
|
$scope.remotes = (typeof data==="string")?[]:data;
|
|
$scope.state = 1;
|
|
})
|
|
.error(function (error) {
|
|
$scope.remotes = [];
|
|
$scope.state = 1;
|
|
});
|
|
}); |