Skip to content
Snippets Groups Projects

Resolve "Refactor buckets into pinia store"

Merged Daniel Göbel requested to merge feature/29-refactor-buckets-into-pinia-store into development
13 files
+ 2281
1474
Compare changes
  • Side-by-side
  • Inline
Files
13
@@ -2,17 +2,16 @@
import type { S3Client } from "@aws-sdk/client-s3";
import { CopyObjectCommand } from "@aws-sdk/client-s3";
import BootstrapModal from "@/components/Modals/BootstrapModal.vue";
import type { BucketOut } from "@/client";
import { Modal, Toast } from "bootstrap";
import { onMounted, reactive, watch } from "vue";
import type { S3ObjectMetaInformation } from "@/client";
import dayjs from "dayjs";
import { useBucketStore } from "@/stores/buckets";
const props = defineProps<{
modalID: string;
sourceObject: S3ObjectMetaInformation;
s3Client: S3Client;
availableBuckets: BucketOut[];
}>();
const formState = reactive({
@@ -24,6 +23,7 @@ const formState = reactive({
destBucket: string;
uploading: boolean;
});
const bucketRepository = useBucketStore();
const emit = defineEmits<{
(e: "object-copied", object: S3ObjectMetaInformation): void;
@@ -165,7 +165,7 @@ onMounted(() => {
>
<option disabled selected>Select one...</option>
<option
v-for="bucket in props.availableBuckets"
v-for="bucket in bucketRepository.writableBuckets"
:key="bucket.name"
:value="bucket.name"
>
Loading