Skip to content

Commit

Permalink
web/satellite: change created bucket action
Browse files Browse the repository at this point in the history
This change makes it so that a created bucket will not be navigated to
after creation.

Issue: #6779

Change-Id: I22a57662b4160e66f5a5cc743e68aefec06bd1f8
  • Loading branch information
wilfred-asomanii authored and Storj Robot committed Feb 20, 2024
1 parent af5d446 commit 3eb4c2d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
20 changes: 0 additions & 20 deletions web/satellite/src/components/dialogs/CreateBucketDialog.vue
Expand Up @@ -126,12 +126,6 @@ const configStore = useConfigStore();
// Copied from here https://github.com/storj/storj/blob/f6646b0e88700b5e7113a76a8d07bf346b59185a/satellite/metainfo/validation.go#L38
const ipRegexp = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/;
const props = withDefaults(defineProps<{
openCreated?: boolean,
}>(), {
openCreated: true,
});
const model = defineModel<boolean>({ required: true });
const emit = defineEmits<{
Expand Down Expand Up @@ -237,7 +231,6 @@ function onCreate(): void {
try {
const projectID = projectsStore.state.selectedProject.id;
const bucketURL = `${ROUTES.Projects.path}/${projectsStore.state.selectedProject.urlId}/${ROUTES.Buckets.path}/${bucketName.value}`;
if (!promptForPassphrase.value) {
if (!edgeCredentials.value.accessKeyId) {
Expand All @@ -247,11 +240,6 @@ function onCreate(): void {
await bucketsStore.getBuckets(1, projectID);
analyticsStore.eventTriggered(AnalyticsEvent.BUCKET_CREATED);
if (props.openCreated) {
bucketsStore.setFileComponentBucketName(bucketName.value);
await router.push(bucketURL);
}
if (!bucketWasCreated.value) {
LocalData.setBucketWasCreatedStatus();
}
Expand All @@ -265,10 +253,6 @@ function onCreate(): void {
await bucketsStore.createBucketWithNoPassphrase(bucketName.value);
await bucketsStore.getBuckets(1, projectID);
analyticsStore.eventTriggered(AnalyticsEvent.BUCKET_CREATED);
if (props.openCreated) {
bucketsStore.setFileComponentBucketName(bucketName.value);
await router.push(bucketURL);
}
if (!bucketWasCreated.value) {
LocalData.setBucketWasCreatedStatus();
}
Expand Down Expand Up @@ -337,10 +321,6 @@ function onCreate(): void {
await bucketsStore.createBucketWithNoPassphrase(bucketName.value);
await bucketsStore.getBuckets(1, projectID);
analyticsStore.eventTriggered(AnalyticsEvent.BUCKET_CREATED);
if (props.openCreated) {
bucketsStore.setFileComponentBucketName(bucketName.value);
await router.push(bucketURL);
}
if (!bucketWasCreated.value) {
LocalData.setBucketWasCreatedStatus();
Expand Down
Expand Up @@ -106,7 +106,6 @@
<CreateBucketDialog
v-if="currentStep === OnboardingStep.CreateBucket"
v-model="isBucketDialogOpen"
:open-created="false"
@created="onBucketCreated"
/>
<enter-bucket-passphrase-dialog
Expand Down

0 comments on commit 3eb4c2d

Please sign in to comment.