From 7aaf9d0eb7c7d7e92686c096391af60113d643e5 Mon Sep 17 00:00:00 2001 From: DarkAEther <30438425+DarkAEther@users.noreply.github.com> Date: Thu, 6 Aug 2020 03:28:44 +0530 Subject: [PATCH] fix(registries): remove trailing slash and protocol in registry URLs (#4131) * feat(registries) prevent trailing slash * fix(registries) avoid trailing slash in update registry * fix(registries) include trailing slash removal notice in tooltips * fix(registries) remove protocol when updating existing registry * fix(registries) uniform usage of string replace function for registry update --- .../forms/registry-form-custom/registry-form-custom.html | 2 +- app/portainer/models/registry.js | 1 + app/portainer/services/api/registryService.js | 2 ++ app/portainer/views/registries/edit/registry.html | 5 ++++- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/portainer/components/forms/registry-form-custom/registry-form-custom.html b/app/portainer/components/forms/registry-form-custom/registry-form-custom.html index fc9f4da1e..7081aff7c 100644 --- a/app/portainer/components/forms/registry-form-custom/registry-form-custom.html +++ b/app/portainer/components/forms/registry-form-custom/registry-form-custom.html @@ -30,7 +30,7 @@