Chatwoot/app/javascript/widget/mixins/darkModeMixin.js

16 lines
280 B
JavaScript
Raw Normal View History

import { mapGetters } from 'vuex';
export default {
computed: {
...mapGetters({ darkMode: 'appConfig/darkMode' }),
},
methods: {
$dm(light, dark) {
if (this.darkMode === 'light') {
return light;
}
return light + ' ' + dark;
},
},
};