Skip to content

Commit

Permalink
feat: allow to go back on space creation (#1086)
Browse files Browse the repository at this point in the history
* feat: allow to go back on space creation

With this change now it's possible to go back to space creation form
to make adjustments.

* feat: use always-visible Go back button

* refactor: roll into v-else

* feat: hide Go back button if already deployed
  • Loading branch information
Sekhmet authored Jan 8, 2025
1 parent dc4c0c4 commit 3154b74
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/ui/src/components/CreateDeploymentProgress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ const props = defineProps<{
controller: string;
}>();
const emit = defineEmits<{
(e: 'back');
}>();
const { deployDependency, createSpace } = useActions();
const { web3, login } = useWeb3();
Expand Down Expand Up @@ -273,6 +277,13 @@ onMounted(() => deploy());
</div>
</div>
</div>
<UiButton
v-if="!completed && steps[currentStep].id !== 'INDEXING_SPACE'"
class="mt-4"
@click="emit('back')"
>
Go back
</UiButton>
<div v-if="completed" class="mt-4">
You can now access your space
<AppLink
Expand Down
1 change: 1 addition & 0 deletions apps/ui/src/views/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ watchEffect(() => setTitle('Create space'));
:voting-strategies="votingStrategies"
:execution-strategies="executionStrategies"
:controller="controller"
@back="confirming = false"
/>
<div v-else class="pt-5 flex max-w-[50rem] mx-auto px-4">
<div
Expand Down

0 comments on commit 3154b74

Please sign in to comment.