mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
feat: improve AppLink error message for coder:// URLs (#18444)
Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com> Co-authored-by: Dean Sheather <dean@deansheather.com>
This commit is contained in:
@@ -56,10 +56,17 @@ export const useAppLink = (
|
||||
(app.url.startsWith("jetbrains-gateway:") ||
|
||||
app.url.startsWith("jetbrains:"));
|
||||
|
||||
// Check if this is a coder:// URL
|
||||
const isCoderApp = app.url?.startsWith("coder:");
|
||||
|
||||
if (isJetBrainsApp) {
|
||||
displayError(
|
||||
`To use ${label}, you need to have JetBrains Toolbox installed.`,
|
||||
);
|
||||
} else if (isCoderApp) {
|
||||
displayError(
|
||||
`To use ${label} you need to have Coder Desktop installed`,
|
||||
);
|
||||
} else {
|
||||
displayError(`${label} must be installed first.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user