Skip to content

Commit

Permalink
Merge pull request #130 from togostanza/fix/pagination-params
Browse files Browse the repository at this point in the history
fix data-unavailable_message
  • Loading branch information
penqe authored Mar 9, 2024
2 parents f2aba05 + 8065ee2 commit 4d70fa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions stanzas/pagination-table/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
</tbody>
</table>
<div v-if="filteredRows && filteredRows.length === 0" class="no-data">
{{ dataUnavailable }}
{{ dataUnavailableMessage }}
</div>
</div>
</div>
Expand Down Expand Up @@ -354,7 +354,7 @@ export default defineComponent({
axisSelectorActiveColumn: null,
});

const dataUnavailable = ref(params.dataUnavailable);
const dataUnavailableMessage = ref(params.dataUnavailable_message);

const filteredRows = computed(() => {
const queryForAllColumns = state.queryForAllColumns;
Expand Down Expand Up @@ -607,7 +607,7 @@ export default defineComponent({

return {
width: params.width ? params.width + "px" : "100%",
dataUnavailable,
dataUnavailableMessage,
sliderPagination,
pageSizeOption,
state,
Expand Down
2 changes: 1 addition & 1 deletion stanzas/pagination-table/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"stanza:required": true
},
{
"stanza:key": "data-unavailable",
"stanza:key": "data-unavailable_message",
"stanza:type": "text",
"stanza:default": "No data",
"stanza:example": "No data found.",
Expand Down

0 comments on commit 4d70fa2

Please sign in to comment.