diff --git a/src/locales/default.json b/src/locales/default.json
index 3f3407a75c4..60dfe411a07 100644
--- a/src/locales/default.json
+++ b/src/locales/default.json
@@ -372,7 +372,7 @@
"settings": {
"header": "Settings",
"confirmLeaveMessage": " Do you really want to leave? You have unsaved changes that will be lost.",
- "confirmDeleteSpace": " Do you really want to delete this space? This action cannot be undone and you will not be able to create a new space with the same ENS domain name.",
+ "confirmDeleteSpace": " Do you really want to delete this space? This action cannot be undone and you will not be able to use {name} again to create another space.",
"validationErrorsMessage": "Please fix the following fields before saving:",
"confirmInputDeleteSpace": "Enter {space} to continue:",
"noticeSavedTitle": "Settings saved",
diff --git a/src/views/SpaceSettings.vue b/src/views/SpaceSettings.vue
index 93de3899abd..84d22d9fffb 100644
--- a/src/views/SpaceSettings.vue
+++ b/src/views/SpaceSettings.vue
@@ -69,6 +69,7 @@ const loaded = ref(false);
const modalControllerEditOpen = ref(false);
const currentPage = ref(Page.GENERAL);
const modalDeleteSpaceConfirmation = ref('');
+const modalDeleteSpaceAcknowledge = ref(false);
const modalSettingsSavedOpen = ref(false);
const modalSettingsSavedIgnore = useStorage(
'snapshot.settings.saved.ignore',
@@ -115,11 +116,12 @@ const settingsPages = computed(() => [
async function handleDelete() {
modalDeleteSpaceConfirmation.value = '';
+ modalDeleteSpaceAcknowledge.value = false;
const result = await send(props.space, 'delete-space', {});
console.log(':handleDelete result', result);
- if (result && result.id) {
+ if (result?.id) {
if (domain) {
return window.open(`https://snapshot.org/#/`, '_self');
} else {
@@ -399,13 +401,16 @@ onBeforeRouteLeave(async () => {
/>
-
- {{ $t('settings.confirmDeleteSpace') }}
+
+ {{ $t('settings.confirmDeleteSpace', { name: space.id }) }}
{
focus-on-mount
>
+