aboutsummaryrefslogtreecommitdiff
path: root/extension/src/entries/options/components
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/entries/options/components')
-rw-r--r--extension/src/entries/options/components/Identities.vue9
-rw-r--r--extension/src/entries/options/components/SiteSettings.vue5
2 files changed, 6 insertions, 8 deletions
diff --git a/extension/src/entries/options/components/Identities.vue b/extension/src/entries/options/components/Identities.vue
index e3af74e..0e3e79d 100644
--- a/extension/src/entries/options/components/Identities.vue
+++ b/extension/src/entries/options/components/Identities.vue
@@ -158,11 +158,10 @@ const onNip05Download = () => {
//create file blob
const blob = new Blob([JSON.stringify({ names:nip05 })], { type: 'application/json' })
- //Download the file
- downloadAnchor.value!.href = URL.createObjectURL(blob);
- downloadAnchor.value?.setAttribute('download', 'nostr.json')
- downloadAnchor.value?.click();
-
+ const anchor = get(downloadAnchor);
+ anchor!.href = URL.createObjectURL(blob);
+ anchor!.setAttribute('download', 'nip05.json')
+ anchor!.click();
})
}
diff --git a/extension/src/entries/options/components/SiteSettings.vue b/extension/src/entries/options/components/SiteSettings.vue
index c0c2e93..b31bb9c 100644
--- a/extension/src/entries/options/components/SiteSettings.vue
+++ b/extension/src/entries/options/components/SiteSettings.vue
@@ -7,7 +7,7 @@
Extension settings
</h3>
<div class="my-6">
- <fieldset :disabled="waiting.value">
+ <fieldset :disabled="waiting">
<div class="">
<div class="w-full">
<div class="flex flex-row w-full">
@@ -139,7 +139,7 @@ const { apply, data, buffer, modified, update } = useDataBuffer(settings.value,
})
//Watch for store settings changes and apply them
-watch(settings, v => apply(v.value))
+watch(settings, v => apply(v))
const originProtection = computed({
get: () => isOriginProtectionOn.value,
@@ -196,7 +196,6 @@ const onSave = async () => {
toggleEdit();
}
-
const testConnection = async () =>{
return await apiCall(async ({axios, toaster}) =>{
try{