Skip to content

Commit

Permalink
LAN-611: Add skeleton loading component to action cell
Browse files Browse the repository at this point in the history
  • Loading branch information
Chamara Abesinghe committed Jun 9, 2023
1 parent ae735c8 commit e324302
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/src/core/components/CardTable/Cell/Actions.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<div class="oxd-table-cell-actions">
<oxd-skeleton v-if="loading" animate></oxd-skeleton>
<component
v-else
v-for="(action, key) in actions"
:key="key"
:is="getComponent(action, key)"
Expand All @@ -20,15 +22,17 @@ import {ActionsCellConfig, Action, RowItem, ActionCellEvent} from './types';
import IconButton from '@orangehrm/oxd/core/components/Button/Icon.vue';
import Button from '@orangehrm/oxd/core/components/Button/Button.vue';
import Dropdown from '@orangehrm/oxd/core/components/CardTable/Cell/Dropdown.vue';
import Skeleton from '@orangehrm/oxd/core/components/Skeleton/Skeleton.vue';
export default defineComponent({
name: 'oxd-table-cell-actions',
mixins: [cellMixin],
components: {
'oxd-icon-button': IconButton,
'oxd-button': Button,
'oxd-skeleton': Skeleton,
'oxd-icon-button': IconButton,
'oxd-table-dropdown': Dropdown,
},
Expand Down

0 comments on commit e324302

Please sign in to comment.