Skip to content

Commit

Permalink
Fix UI minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LEIYOUSU committed Oct 28, 2024
1 parent 9ebe7e3 commit 91ffb16
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts" setup>
import UppyUpload from "@/components/upload/UppyUpload.vue";
import type { PolicyTemplate } from "@halo-dev/api-client";
import {
IconAddCircle,
Expand All @@ -15,10 +16,9 @@ import {
useFetchAttachmentPolicyTemplate,
} from "../composables/use-attachment-policy";
import AttachmentGroupBadge from "./AttachmentGroupBadge.vue";
import AttachmentGroupEditingModal from "./AttachmentGroupEditingModal.vue";
import AttachmentPolicyBadge from "./AttachmentPolicyBadge.vue";
import AttachmentPolicyEditingModal from "./AttachmentPolicyEditingModal.vue";
import AttachmentGroupEditingModal from "./AttachmentGroupEditingModal.vue";
import UppyUpload from "@/components/upload/UppyUpload.vue";
const emit = defineEmits<{
(event: "close"): void;
Expand Down Expand Up @@ -143,14 +143,14 @@ const onGroupEditingModalClose = async () => {
@click="selectedGroupName = group.metadata.name"
/>

<AttachmentGroupBadge @click="handleOpenCreateNewGroupModal">
<AttachmentPolicyBadge @click="handleOpenCreateNewGroupModal">
<template #text>
<span>{{ $t("core.common.buttons.new") }}</span>
</template>
<template #actions>
<IconAddCircle />
</template>
</AttachmentGroupBadge>
</AttachmentPolicyBadge>
</div>
<UppyUpload
endpoint="/apis/api.console.halo.run/v1alpha1/attachments/upload"
Expand Down

0 comments on commit 91ffb16

Please sign in to comment.