Skip to content

Commit 6072779

Browse files
committed
feat(sidebar): Add paste URL option to context menu
Fixes #578
1 parent 3956252 commit 6072779

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/renderer/js/main.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,14 @@ export class ServerManagerView {
823823
$serverImg.addEventListener("contextmenu", async (event) => {
824824
event.preventDefault();
825825
const template = [
826+
{
827+
label: t.__("Paste Zulip URL"),
828+
async click() {
829+
const url = clipboard.readText();
830+
await DomainUtil.addDomain({url, alias: url});
831+
ipcRenderer.send("reload-full-app");
832+
},
833+
},
826834
{
827835
label: t.__("Disconnect organization"),
828836
async click() {

0 commit comments

Comments
 (0)