Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Kipling <nkipling@gitlab.com>2019-07-02 16:12:45 +0300
committerPhil Hughes <me@iamphill.com>2019-07-02 16:12:45 +0300
commitf01127ad25191913b3c399ee185f1c9f7034198b (patch)
treee6cfd00d9658b9b1424746e4e1c14df43cf5ecf0 /app/controllers
parenta7cc29c89f71c8f80806115a70c92750d4350a92 (diff)
Registry component now includes error messages
Includes changes to the Vue container registry component to support the display of an empty message and error message when invalid characters are found in the group, project or branch name. repositories/index.html.haml has been changed to remove the content and place into Vue component.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/registry/repositories_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/registry/repositories_controller.rb b/app/controllers/projects/registry/repositories_controller.rb
index 6d60117c37d..e205e2fd4f8 100644
--- a/app/controllers/projects/registry/repositories_controller.rb
+++ b/app/controllers/projects/registry/repositories_controller.rb
@@ -46,6 +46,8 @@ module Projects
repository.save! if repository.has_tags?
end
end
+ rescue ContainerRegistry::Path::InvalidRegistryPathError
+ @character_error = true
end
end
end