mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
Add Block and Default homepage menu options (#986)
This commit is contained in:
parent
e2bd3cd94a
commit
2e27296677
@ -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",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user