Skip to content

Commit

Permalink
sidebar icon, trans fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Hermanek committed Jan 27, 2025
1 parent 9b8e538 commit 122159a
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 15 deletions.
6 changes: 5 additions & 1 deletion src/model/coreDam/factory/PublicExportFactory.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
import { dateTimeNow } from '@anzusystems/common-admin'
import type { PublicExport } from '@/types/coreDam/PublicExport'
import { ExportTypeDefault } from '@/model/coreDam/valueObject/ExportType'
import { ENTITY } from '@/services/api/coreDam/publicExportApi'
import { SYSTEM_CORE_DAM } from '@/model/systems'

export function usePublicExportFactory() {
const createDefault = (): PublicExport => {
return {
id: '',
id: 0,
assetLicence: null,
slug: '',
type: ExportTypeDefault,
createdAt: dateTimeNow(),
modifiedAt: dateTimeNow(),
createdBy: 1,
modifiedBy: 1,
_resourceName: ENTITY,
_system: SYSTEM_CORE_DAM,
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/services/api/coreDam/publicExportApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export const fetchPublicExportList = (pagination: Pagination, filterBag: FilterB
export const createPublicExport = (data: PublicExport) =>
apiCreateOne<PublicExport>(damClient, data, END_POINT, {}, SYSTEM_CORE_DAM, ENTITY)

export const updatePublicExport = (id: string, data: PublicExport) =>
export const updatePublicExport = (id: IntegerId, data: PublicExport) =>
apiUpdateOne<PublicExport>(damClient, data, END_POINT + '/:id', { id }, SYSTEM_CORE_DAM, ENTITY)

export const fetchPublicExport = (id: string) =>
export const fetchPublicExport = (id: IntegerId) =>
apiFetchOne<PublicExport>(damClient, END_POINT + '/:id', { id }, SYSTEM_CORE_DAM, ENTITY)

export const deletePublicExport = (id: IntegerId) =>
Expand Down
1 change: 1 addition & 0 deletions src/views/coreDam/asset/detail/components/AssetChip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { COMMON_CONFIG } from '@anzusystems/common-admin'
import { ROUTE } from '@/router/routes'
import { useRouter } from 'vue-router'
import type { DocId } from '@anzusystems/common-admin'
import { useAssetDetailStore } from '@/stores/coreDam/assetDetailStore'
const props = withDefaults(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ import {
useAssetDetailSidebarSlotsActions
} from '@/views/coreDam/asset/detail/composables/assetDetailSidebarSlotsActions'
import {
AAssetSelect,
ADatatablePagination,
ARow,
type AssetSelectReturnData, DamAssetType,
DamAssetType as AssetTypeValue,
DamAssetType,
type DamAssetTypeType,
type DocId
} from '@anzusystems/common-admin'
import { onMounted } from 'vue'
import { useI18n } from 'vue-i18n'
import { useCurrentAssetLicence } from '@/composables/system/currentExtSystem'
import AssetChip from '@/views/coreDam/asset/detail/components/AssetChip.vue'
import AssetSibling from '@/views/coreDam/asset/detail/components/slots/AssetSibling.vue'
const props = withDefaults(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import {
AAssetSelect,
type AssetSelectReturnData, DamAssetType,
type DamAssetTypeType,
type DocId,
} from '@anzusystems/common-admin'
import { useAssetDetailStore } from '@/stores/coreDam/assetDetailStore'
Expand Down
1 change: 1 addition & 0 deletions src/views/coreDam/podcast/components/PodcastDatatable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
ATableEditButton,
createDatatableColumnsConfig,
type DatatableOrderingOption,
type DatatableOrderingOptions,
useFilterHelpers,
} from '@anzusystems/common-admin'
import { ROUTE } from '@/router/routes'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
ATableEditButton,
createDatatableColumnsConfig,
useFilterHelpers,
type DatatableOrderingOptions,
} from '@anzusystems/common-admin'
import { SYSTEM_CORE_DAM } from '@/model/systems'
import { ENTITY } from '@/services/api/coreDam/podcastEpisodeApi'
Expand Down
2 changes: 1 addition & 1 deletion src/views/coreDam/publicExport/PublicExportDetailView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ onBeforeUnmount(() => {
</script>

<template>
<ActionbarWrapper :last-breadcrumb-title="publicExport.phrase">
<ActionbarWrapper :last-breadcrumb-title="publicExport.slug">
<template #buttons>
<Acl :permission="ACL.DAM_PUBLIC_EXPORT_UPDATE">
<AActionEditButton
Expand Down
2 changes: 1 addition & 1 deletion src/views/coreDam/publicExport/PublicExportEditView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ onBeforeUnmount(() => {
</script>

<template>
<ActionbarWrapper :last-breadcrumb-title="publicExport.phrase">
<ActionbarWrapper :last-breadcrumb-title="publicExport.slug">
<template #buttons>
<AActionSaveButton
v-if="!detailLoading"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ const emit = defineEmits<{
const { currentExtSystemId } = useCurrentExtSystem()
const { createDefault } = usePublicExportFactory()
const publicExport = ref<PublicExport>(createDefault(currentExtSystemId.value))
const publicExport = ref<PublicExport>(createDefault())
const dialog = ref(false)
const { v$ } = usePublicExportValidation(publicExport)
const { t } = useI18n()
const onOpen = () => {
publicExport.value = createDefault(currentExtSystemId.value)
publicExport.value = createDefault()
}
const create = async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Ref } from 'vue'
import { computed } from 'vue'
import useVuelidate from '@vuelidate/core'
import type { PublicExport } from '@anzusystems/common-admin'
import type { ValidationScope } from '@anzusystems/common-admin'
import { useValidate } from '@anzusystems/common-admin'
import type { PublicExport } from '@/types/coreDam/PublicExport'

const { required, minLength } = useValidate()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
ATableEditButton,
createDatatableColumnsConfig,
type DatatableOrderingOption,
type DatatableOrderingOptions,
useFilterHelpers,
} from '@anzusystems/common-admin'
import { ROUTE } from '@/router/routes'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<script lang="ts" setup>
import { onMounted } from 'vue'
import { ABooleanValue, ADatatableOrdering, type DatatableOrderingOption, type DocId } from '@anzusystems/common-admin'
import {
ABooleanValue,
ADatatableOrdering,
type DatatableOrderingOption,
type DatatableOrderingOptions,
type DocId
} from '@anzusystems/common-admin'
import {
ADatatableConfigButton,
ADatatablePagination,
Expand Down

0 comments on commit 122159a

Please sign in to comment.