mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 04:27:53 +00:00
28 lines
662 B
JavaScript
28 lines
662 B
JavaScript
import { getLanguageDirection } from 'dashboard/components/widgets/conversation/advancedFilterItems/languages';
|
|
import { useUISettings } from 'dashboard/composables/useUISettings';
|
|
|
|
export default {
|
|
setup() {
|
|
const { uiSettings, updateUISettings } = useUISettings();
|
|
|
|
return {
|
|
uiSettings,
|
|
updateUISettings,
|
|
};
|
|
},
|
|
computed: {
|
|
isRTLView() {
|
|
const { rtl_view: isRTLView } = this.uiSettings;
|
|
return isRTLView;
|
|
},
|
|
},
|
|
methods: {
|
|
updateRTLDirectionView(locale) {
|
|
const isRTLSupported = getLanguageDirection(locale);
|
|
this.updateUISettings({
|
|
rtl_view: isRTLSupported,
|
|
});
|
|
},
|
|
},
|
|
};
|