Browse Source

fix: attend to feedback

Co-authored-by: sheldon-welinga <sheldonwelinga@gmail.com>
Co-authored-by: gitstart <gitstart@gitstart.com>
Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com>
pull/6039/head
gitstart 1 year ago
parent
commit
41ca1f13fd
  1. 9
      packages/nc-gui/components/smartsheet/Pagination.vue

9
packages/nc-gui/components/smartsheet/Pagination.vue

@ -1,13 +1,12 @@
<script setup lang="ts"> <script setup lang="ts">
import { ChangePageInj, PaginationDataInj, computed, iconMap, inject, useGlobal } from '#imports' import { ChangePageInj, PaginationDataInj, computed, iconMap, inject, isRtlLang, useI18n } from '#imports'
import type { StoredState } from '~/composables/useGlobal/types' import type { Language } from '~/lib'
const props = defineProps<{ const props = defineProps<{
alignCountOnRight?: boolean alignCountOnRight?: boolean
}>() }>()
const { lang } = useGlobal() const { locale } = useI18n()
const rtlLanguages: Array<StoredState['lang']> = ['ar', 'fa']
const paginatedData = inject(PaginationDataInj)! const paginatedData = inject(PaginationDataInj)!
@ -24,7 +23,7 @@ const page = computed({
}, },
}) })
const isRTLLanguage = computed(() => rtlLanguages.includes(lang.value)) const isRTLLanguage = computed(() => isRtlLang(locale.value as keyof typeof Language))
</script> </script>
<template> <template>

Loading…
Cancel
Save