mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-08 18:27:50 +02:00
25 lines
491 B
JavaScript
25 lines
491 B
JavaScript
|
(function() {
|
||
|
'use strict';
|
||
|
|
||
|
angular
|
||
|
.module('harbor.app')
|
||
|
.run(CurrentUser);
|
||
|
|
||
|
CurrentUser.$inject = ['CurrentUserService', '$log'];
|
||
|
|
||
|
function CurrentUser(CurrentUserService, $log) {
|
||
|
|
||
|
CurrentUserService()
|
||
|
.then(getCurrentUserComplete)
|
||
|
.catch(getCurrentUserFailed);
|
||
|
|
||
|
function getCurrentUserComplete(data) {
|
||
|
$log.info(data.data);
|
||
|
}
|
||
|
|
||
|
function getCurrentUserFailed(e){
|
||
|
$log.info(e);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
})();
|