mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 20:18:08 +00:00
21 lines
539 B
JavaScript
21 lines
539 B
JavaScript
import uiSettingsMixin from 'dashboard/mixins/uiSettings';
|
|
import { getLanguageDirection } from 'dashboard/components/widgets/conversation/advancedFilterItems/languages';
|
|
|
|
export default {
|
|
mixins: [uiSettingsMixin],
|
|
computed: {
|
|
isRTLView() {
|
|
const { rtl_view: isRTLView } = this.uiSettings;
|
|
return isRTLView;
|
|
},
|
|
},
|
|
methods: {
|
|
updateRTLDirectionView(locale) {
|
|
const isRTLSupported = getLanguageDirection(locale);
|
|
this.updateUISettings({
|
|
rtl_view: isRTLSupported,
|
|
});
|
|
},
|
|
},
|
|
};
|