Skip to content

Commit

Permalink
Allow desktop app to work with local installations
Browse files Browse the repository at this point in the history
  • Loading branch information
sandromello committed Dec 2, 2024
1 parent 9e18422 commit 0acb8cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Config struct {
GrpcURL string `toml:"grpc_url"`
TlsCAB64Enc string `toml:"tls_ca"`
Mode string `toml:"-"`
InsecureGRPC bool `tom:"-"`
InsecureGRPC bool `toml:"-"`
filepath string `toml:"-"`
}

Expand Down
5 changes: 2 additions & 3 deletions webapp/src/webapp/events/connections.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,10 @@ ORDER BY total_amount DESC;")
(rf/reg-event-fx
:connections->start-connect
(fn [{:keys [db]} [_ connection-name]]
(let [gateway-info (-> db :gateway->info)
grpc-url (url-parse (-> gateway-info :data :grpc_url))]
(let [gateway-info (-> db :gateway->info)]
{:db (assoc-in db [:connections->connection-connected] {:data {} :status :loading})
:fx [[:dispatch [:hoop-app->update-my-configs {:apiUrl (-> gateway-info :data :api_url)
:grpcUrl (.-host grpc-url)
:grpcUrl (-> gateway-info :data :grpc_url)
:token (.getItem js/localStorage "jwt-token")}]]
[:dispatch [:modal->close]]
[:dispatch [:hoop-app->restart]]
Expand Down

0 comments on commit 0acb8cd

Please sign in to comment.