Skip to content

Commit

Permalink
:wq
Browse files Browse the repository at this point in the history
Merge branch 'hotfix/BSM-search' of https://github.com/menthorlabs/menthor
  • Loading branch information
BernardoSM committed Jan 27, 2024
2 parents f9142e8 + 009b3d2 commit a49ad03
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions apps/app/pages/creators/images.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<script setup lang="ts">
import { useMagicKeys } from "@vueuse/core";
definePageMeta({
middleware: ["auth"],
});
const { control, v } = useMagicKeys();
const toast: { error: Function; success: Function } | undefined =
inject("toast");
Expand All @@ -26,9 +30,6 @@ watchEffect(async () => {
}
});
definePageMeta({
middleware: ["auth"],
});
const creatorsStore = useCreatorsStore();
const uploadStore = useUploadStore();
const loading = ref(true);
Expand All @@ -38,10 +39,6 @@ onMounted(async () => {
loading.value = false;
});
const reversedImages = computed(() => {
return creatorsStore.images.reverse();
});
function getSizePercentage(bytes: number) {
const tenGigabytes = 10737418240;
Expand Down Expand Up @@ -143,7 +140,7 @@ function removeImage(fileName: string) {
v-else-if="creatorsStore.images?.length > 0"
>
<CreatorsImageCard
v-for="fileName in reversedImages"
v-for="fileName in creatorsStore.images"
:key="fileName"
:fileUrl="`https://menthor-content.s3.sa-east-1.amazonaws.com/${fileName}`"
@remove="removeImage(fileName)"
Expand Down

0 comments on commit a49ad03

Please sign in to comment.