mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
* Validate chat button url only when chatUrl is set Signed-off-by: Rouke Broersma <rouke.broersma@infosupport.com> * Add Info Support to argocd USERS.md Signed-off-by: Rouke Broersma <rouke.broersma@infosupport.com> * Fix linter error Signed-off-by: Rouke Broersma <rouke.broersma@infosupport.com> * Fix linter error Signed-off-by: Rouke Broersma <rouke.broersma@infosupport.com> --------- Signed-off-by: Rouke Broersma <rouke.broersma@infosupport.com>
This commit is contained in:
parent
0f500a5b21
commit
6953b43c9b
2 changed files with 8 additions and 5 deletions
1
USERS.md
1
USERS.md
|
|
@ -112,6 +112,7 @@ Currently, the following organizations are **officially** using Argo CD:
|
|||
1. [imaware](https://imaware.health)
|
||||
1. [Indeed](https://indeed.com)
|
||||
1. [Index Exchange](https://www.indexexchange.com/)
|
||||
1. [Info Support](https://www.infosupport.com/)
|
||||
1. [InsideBoard](https://www.insideboard.com)
|
||||
1. [Intuit](https://www.intuit.com/)
|
||||
1. [Joblift](https://joblift.com/)
|
||||
|
|
|
|||
|
|
@ -69,11 +69,13 @@ export const Banner = (props: React.Props<any>) => {
|
|||
chatBottomPosition = 85;
|
||||
}
|
||||
}
|
||||
try {
|
||||
const externalLink = new ExternalLink(chatUrl);
|
||||
chatUrl = externalLink.ref;
|
||||
} catch (InvalidExternalLinkError) {
|
||||
chatUrl = 'invalid-url';
|
||||
if (chatUrl) {
|
||||
try {
|
||||
const externalLink = new ExternalLink(chatUrl);
|
||||
chatUrl = externalLink.ref;
|
||||
} catch (InvalidExternalLinkError) {
|
||||
chatUrl = 'invalid-url';
|
||||
}
|
||||
}
|
||||
return (
|
||||
<React.Fragment>
|
||||
|
|
|
|||
Loading…
Reference in a new issue