From 2e2729667762dea0b3d143e1d790a85cf05a5582 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Tue, 8 Oct 2024 11:46:50 -0400 Subject: [PATCH] Add Block and Default homepage menu options (#986) --- frontend/app/view/webview/webview.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/app/view/webview/webview.tsx b/frontend/app/view/webview/webview.tsx index a72df73fd..f770f907c 100644 --- a/frontend/app/view/webview/webview.tsx +++ b/frontend/app/view/webview/webview.tsx @@ -378,7 +378,7 @@ export class WebViewModel implements ViewModel { getSettingsMenuItems(): ContextMenuItem[] { return [ { - label: "Set Homepage", + label: "Set Block Homepage", click: async () => { const url = this.getUrl(); if (url != null && url != "") { @@ -389,6 +389,15 @@ export class WebViewModel implements ViewModel { } }, }, + { + label: "Set Default Homepage", + click: async () => { + const url = this.getUrl(); + if (url != null && url != "") { + await RpcApi.SetConfigCommand(WindowRpcClient, { "web:defaulturl": url }); + } + }, + }, { type: "separator", },