diff --git a/src/components/ModalOsnap.vue b/src/components/ModalOsnap.vue index 0aab6ddc1..5d7464ee5 100644 --- a/src/components/ModalOsnap.vue +++ b/src/components/ModalOsnap.vue @@ -17,7 +17,7 @@ const href = computed(() => spaceUrl, spaceName: props.spaceName, safeAddress: props.treasury.address, - network: props.treasury.network, + network: props.treasury.network }) ); @@ -28,14 +28,18 @@ const href = computed(() =>
- oSnap seamlessly integrates with Snapshot and your treasury,
- automatically executing governance votes on-chain. Bypass the need for
- privileged signers to create a DAO that's more efficient and truly
- decentralized.
-
+ oSnap seamlessly integrates with Snapshot and your treasury,
+ automatically executing governance votes on-chain. Bypass the need for
+ privileged signers to create a DAO that's more efficient and truly
+ decentralized.
+
Note that the deactivation process takes place in the Safe app
++ Note that the deactivation process takes place in the Safe app +
diff --git a/src/components/SettingsTreasuriesBlockItemButton.vue b/src/components/SettingsTreasuriesBlockItemButton.vue index d529fc31a..74892e820 100644 --- a/src/components/SettingsTreasuriesBlockItemButton.vue +++ b/src/components/SettingsTreasuriesBlockItemButton.vue @@ -10,41 +10,56 @@ const props = defineProps<{ }>(); const emit = defineEmits<{ - removeTreasury: [index: number] - editTreasury: [index: number] - configureOsnap: [index: number, isEnabled: boolean] + removeTreasury: [index: number]; + editTreasury: [index: number]; + configureOsnap: [index: number, isEnabled: boolean]; }>(); const isOsnapEnabled = ref(false); -onMounted(async () => { +async function updateIsOsnapEnabled() { + console.log('updateIsOsnapEnabled') if (!props.hasOsnapPlugin) return; - isOsnapEnabled.value = await getIsOsnapEnabled(props.treasury.network, props.treasury.address); -}) + isOsnapEnabled.value = await getIsOsnapEnabled( + props.treasury.network, + props.treasury.address + ); +} + +onMounted(async () => { + await updateIsOsnapEnabled(); + window.addEventListener('focus', updateIsOsnapEnabled); +}); + +onUnmounted(() => { + window.removeEventListener('focus', updateIsOsnapEnabled); +}); - \ No newline at end of file +