Add Block and Default homepage menu options (#986)

This commit is contained in:
Evan Simkowitz 2024-10-08 11:46:50 -04:00 committed by GitHub
parent e2bd3cd94a
commit 2e27296677
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",
},