Skip to content

Commit

Permalink
Merge branch 'develop' into feat/CW-3292-backend
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsivin committed May 23, 2024
2 parents 016bf49 + 9f62571 commit 2261c04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/javascript/dashboard/mixins/uiSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const DEFAULT_CONTACT_SIDEBAR_ITEMS_ORDER = [
];

const slugifyChannel = name =>
name.toLowerCase().replace(' ', '_').replace('-', '_').replace('::', '_');
name?.toLowerCase().replace(' ', '_').replace('-', '_').replace('::', '_');

export const isEditorHotKeyEnabled = (uiSettings, key) => {
const {
Expand Down Expand Up @@ -70,6 +70,8 @@ export default {
this.updateUISettings({ [key]: !this.isContactSidebarItemOpen(key) });
},
setSignatureFlagForInbox(channelType, value) {
if (!channelType) return;

channelType = slugifyChannel(channelType);
this.updateUISettings({
[`${channelType}_signature_enabled`]: value,
Expand Down

0 comments on commit 2261c04

Please sign in to comment.