Skip to content

Commit

Permalink
Merge pull request #412 from ownego/fix/loading-state-for-index-table
Browse files Browse the repository at this point in the history
Update: fix children loading in h function IndexTable
  • Loading branch information
juzser authored Nov 12, 2024
2 parents 314e7f6 + e5fac22 commit 718ff83
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/components/IndexTable/IndexTableBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -604,20 +604,22 @@ const loadingMarkup = computed(() => {
loading?.value && styles.LoadingPanelEntered,
)
},
() => h(
'div',
{ class: styles.LoadingPanelRow },
[
h(Spinner, { size: 'small' }),
h(
'span',
{ class: styles.LoadingPanelText },
i18n.translate('Polaris.IndexTable.resourceLoadingAccessibilityLabel', {
resourceNamePlural: contextResourceName.plural.toLocaleLowerCase(),
}),
),
],
),
[
h(
'div',
{ class: styles.LoadingPanelRow },
[
h(Spinner, { size: 'small' }),
h(
'span',
{ class: styles.LoadingPanelText },
i18n.translate('Polaris.IndexTable.resourceLoadingAccessibilityLabel', {
resourceNamePlural: contextResourceName.plural.toLocaleLowerCase(),
}),
),
],
),
]
);
});
Expand Down

0 comments on commit 718ff83

Please sign in to comment.