add button to copy url of dropbox
This commit is contained in:
parent
b91c0e694c
commit
f0dd3bb5ef
@ -120,6 +120,21 @@ class DropboxAuthModal extends Modal {
|
|||||||
contentEl.createEl("p", {
|
contentEl.createEl("p", {
|
||||||
text: "Finally you should be redirected to Obsidian.",
|
text: "Finally you should be redirected to Obsidian.",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const div2 = contentEl.createDiv();
|
||||||
|
div2.createEl(
|
||||||
|
"button",
|
||||||
|
{
|
||||||
|
text: "Click to copy the auth url",
|
||||||
|
},
|
||||||
|
(el) => {
|
||||||
|
el.onclick = async () => {
|
||||||
|
await navigator.clipboard.writeText(authUrl);
|
||||||
|
new Notice("the auth url copied to clipboard!");
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
contentEl.createEl("p").createEl("a", {
|
contentEl.createEl("p").createEl("a", {
|
||||||
href: authUrl,
|
href: authUrl,
|
||||||
text: authUrl,
|
text: authUrl,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user