Add widget reply notification setting
This commit is contained in:
@@ -219,7 +219,8 @@ function defaultSettings() {
|
||||
muted: "#647067"
|
||||
},
|
||||
desktop: { side: "right", bottomPx: 22, sideOffsetPx: 22, widthPx: 370 },
|
||||
mobile: { side: "right", bottomPx: 14, sideOffsetPx: 12, widthPx: 340 }
|
||||
mobile: { side: "right", bottomPx: 14, sideOffsetPx: 12, widthPx: 340 },
|
||||
notifications: { pulseOnAdminReply: true }
|
||||
};
|
||||
}
|
||||
|
||||
@@ -614,13 +615,15 @@ function formatAttachment(row) {
|
||||
}
|
||||
|
||||
function formatSite(site) {
|
||||
const settings = parseJson(site.settings_json, defaultSettings());
|
||||
settings.notifications = { ...defaultSettings().notifications, ...(settings.notifications || {}) };
|
||||
return {
|
||||
id: site.id,
|
||||
siteKey: site.site_key,
|
||||
name: site.name,
|
||||
domain: site.domain,
|
||||
isOnline: Boolean(site.is_online),
|
||||
settings: parseJson(site.settings_json, defaultSettings())
|
||||
settings
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user