Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
volar committed Feb 12, 2024
1 parent 183073e commit ace2556
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/system/CurrentUserDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { damCurrentUser } = useDamCurrentUser()

<template>
<ACurrentUserDropdown
:current-user="damCurrentUser"
:current-user="damCurrentUser as any"
:settings-route-name="ROUTE.SYSTEM.SETTINGS"
:logout-route-name="ROUTE.SYSTEM.LOGOUT"
/>
Expand Down
7 changes: 6 additions & 1 deletion src/views/common/anzuUser/components/AnzuUserDatatable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,20 @@ defineExpose({
</template>
<template #item.actions="{ item }: { item: DatatableItem }">
<div class="d-flex justify-end">
<ATableCopyIdButton :id="item.id" />
<ATableCopyIdButton
v-if="item.id"
:id="item.id"
/>
<Acl :permission="ACL.DAM_USER_VIEW">
<ATableDetailButton
v-if="item.id"
:record-id="item.id"
:route-name="ROUTE.COMMON.ANZU_USER.DETAIL"
/>
</Acl>
<Acl :permission="ACL.DAM_USER_UPDATE">
<ATableEditButton
v-if="item.id"
:record-id="item.id"
:route-name="ROUTE.COMMON.ANZU_USER.EDIT"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/views/common/anzuUser/components/AnzuUserDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const { t } = useI18n()
sm="4"
>
<h4>{{ t('common.anzuUser.model.id') }}</h4>
<ACopyText :value="anzuUser.id" />
<ACopyText :value="`${anzuUser.id}`" />
</VCol>
<VCol
cols="12"
Expand Down
2 changes: 1 addition & 1 deletion src/views/common/anzuUser/components/AnzuUserEditForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const autoFillTexts = () => {
v-else
:title="t('common.anzuUser.model.id')"
>
<ACopyText :value="anzuUser.id" />
<ACopyText :value="`${anzuUser.id}`" />
</ARow>
</VCol>
<VCol
Expand Down
3 changes: 2 additions & 1 deletion src/views/common/anzuUser/composables/anzuUserActions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { AnzuUser, FilterBag, Pagination } from '@anzusystems/common-admin'
import { useAlerts } from '@anzusystems/common-admin'
import { isInt, useAlerts } from '@anzusystems/common-admin'
import { ref } from 'vue'
import type { AxiosInstance } from 'axios'
import { useAnzuUserApi } from '@/services/api/common/anzuUserApi'
Expand Down Expand Up @@ -55,6 +55,7 @@ export const useAnzuUserActions = (client: () => AxiosInstance) => {
const router = useRouter()
const v$ = useVuelidate()
const updateAnzuUser = async (close = false) => {
if (!isInt(anzuUserOneStore.anzuUser.id)) return
try {
saveButtonLoading.value = true
v$.value.$touch()
Expand Down

0 comments on commit ace2556

Please sign in to comment.