@@ -86,6 +86,7 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
|
||||
this._clientId = '<%= oauth.clientId %>';
|
||||
this._clientSecret = '<%= oauth.clientSecret %>';
|
||||
this.apiOrigin = '<%= oauth.apiOrigin %>';
|
||||
this.avatar = this.apiOrigin + '/api/v1/cloudron/avatar?' + String(Math.random()).slice(2);
|
||||
|
||||
this.setToken(localStorage.token);
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
$scope.initialized = false;
|
||||
$scope.user = Client.getUserInfo();
|
||||
$scope.installedApps = Client.getInstalledApps();
|
||||
$scope.cloudronAvatar = Client.apiOrigin + '/api/v1/cloudron/avatar';
|
||||
$scope.config = {};
|
||||
$scope.client = Client;
|
||||
|
||||
$scope.update = {
|
||||
busy: false,
|
||||
|
||||
Reference in New Issue
Block a user