Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
actual-vt-capstone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danieljk
actual-vt-capstone
Commits
992f8c16
Unverified
Commit
992f8c16
authored
2 years ago
by
Jed Fox
Browse files
Options
Downloads
Patches
Plain Diff
Don’t suggest http://
parent
c007c3f6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/desktop-client/src/components/manager/ConfigServer.js
+5
-5
5 additions, 5 deletions
...ges/desktop-client/src/components/manager/ConfigServer.js
with
5 additions
and
5 deletions
packages/desktop-client/src/components/manager/ConfigServer.js
+
5
−
5
View file @
992f8c16
...
@@ -28,8 +28,8 @@ export default function ConfigServer() {
...
@@ -28,8 +28,8 @@ export default function ConfigServer() {
switch
(
error
)
{
switch
(
error
)
{
case
'
network-failure
'
:
case
'
network-failure
'
:
return
'
Server is not running at this URL
'
;
return
'
Server is not running at this URL
'
;
case
'
add-http
'
:
case
'
add-http
s
'
:
return
'
Server is not running at this URL.
Did you mean to add "http://"?
'
;
return
'
Server is not running at this URL.
Make sure you have HTTPS set up properly.
'
;
default
:
default
:
return
'
Server does not look like an Actual server. Is it set up correctly?
'
;
return
'
Server does not look like an Actual server. Is it set up correctly?
'
;
}
}
...
@@ -51,9 +51,9 @@ export default function ConfigServer() {
...
@@ -51,9 +51,9 @@ export default function ConfigServer() {
)
{
)
{
let
{
error
}
=
await
send
(
'
set-server-url
'
,
{
url
:
'
https://
'
+
url
});
let
{
error
}
=
await
send
(
'
set-server-url
'
,
{
url
:
'
https://
'
+
url
});
if
(
error
===
'
network-failure
'
)
{
if
(
error
===
'
network-failure
'
)
{
setError
(
'
add-http
'
);
setError
(
'
add-http
s
'
);
if
(
!
url
.
startsWith
(
'
http://
'
))
{
if
(
!
url
.
startsWith
(
'
http
s
://
'
))
{
setUrl
(
'
http://
'
+
url
);
setUrl
(
'
http
s
://
'
+
url
);
}
}
}
else
if
(
error
)
{
}
else
if
(
error
)
{
setError
(
error
);
setError
(
error
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment