Add a fetch tag dialog
This commit is contained in:
parent
c1d58bdd6c
commit
70aec00914
13 changed files with 258 additions and 2 deletions
|
@ -54,6 +54,10 @@ angular.module('quay').factory('Config', [function() {
|
|||
return config['PREFERRED_URL_SCHEME'] + '://' + auth + config['SERVER_HOSTNAME'];
|
||||
};
|
||||
|
||||
config.getHttp = function() {
|
||||
return config['PREFERRED_URL_SCHEME'];
|
||||
};
|
||||
|
||||
config.getUrl = function(opt_path) {
|
||||
var path = opt_path || '';
|
||||
return config['PREFERRED_URL_SCHEME'] + '://' + config['SERVER_HOSTNAME'] + path;
|
||||
|
|
|
@ -83,6 +83,10 @@ function(ApiService, CookieService, $rootScope, Config) {
|
|||
});
|
||||
};
|
||||
|
||||
userService.isOrganization = function(name) {
|
||||
return !!userService.getOrganization(name);
|
||||
};
|
||||
|
||||
userService.getOrganization = function(name) {
|
||||
if (!userResponse || !userResponse.organizations) { return null; }
|
||||
for (var i = 0; i < userResponse.organizations.length; ++i) {
|
||||
|
|
Reference in a new issue