Skip to content

Commit

Permalink
fix: broken display of owner avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Nov 26, 2024
1 parent c46c758 commit dba58d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions ui/dts/typed-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ declare module 'vue-router/auto-routes' {
export interface RouteNamedMap {
'/admin/': RouteRecordInfo<'/admin/', '/admin', Record<never, never>, Record<never, never>>,
'/admin/plugins': RouteRecordInfo<'/admin/plugins', '/admin/plugins', Record<never, never>, Record<never, never>>,
'/dev': RouteRecordInfo<'/dev', '/dev', Record<never, never>, Record<never, never>>,
'/processings/': RouteRecordInfo<'/processings/', '/processings', Record<never, never>, Record<never, never>>,
'/processings/[id]': RouteRecordInfo<'/processings/[id]', '/processings/:id', { id: ParamValue<true> }, { id: ParamValue<false> }>,
'/runs/[id]': RouteRecordInfo<'/runs/[id]', '/runs/:id', { id: ParamValue<true> }, { id: ParamValue<false> }>,
Expand Down
5 changes: 2 additions & 3 deletions ui/src/components/processing/processing-card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,9 @@
</template>
</v-list>
</v-card-text>
<v-spacer />
<v-card-actions
v-if="showOwner"
class="pl-3 pt-0"
class="pl-3 pt-0 mt-auto"
>
<owner-avatar :owner="processing.owner" />
<v-spacer />
Expand All @@ -139,7 +138,7 @@
</template>

<script setup lang="ts">
const ownerAvatar = import('@data-fair/lib-vuetify/owner-avatar.vue')
import ownerAvatar from '@data-fair/lib-vuetify/owner-avatar.vue'
const { dayjs } = useLocaleDayjs()
const props = defineProps({
Expand Down
2 changes: 0 additions & 2 deletions ui/src/pages/processings/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@
md="4"
sm="6"
cols="12"
class="d-flex"
>
<processing-card
:processing="processing"
:show-owner="showAll || (processing.owner.department && !session.state.account.department)"
class="w-100"
/>
</v-col>
</v-row>
Expand Down

0 comments on commit dba58d2

Please sign in to comment.