Add configurable widget online effects
This commit is contained in:
@@ -263,6 +263,13 @@ function defaultSettings() {
|
||||
},
|
||||
desktop: { side: "right", bottomPx: 22, sideOffsetPx: 22, widthPx: 370 },
|
||||
mobile: { side: "right", bottomPx: 14, sideOffsetPx: 12, widthPx: 340 },
|
||||
launcherEffects: {
|
||||
breathe: true,
|
||||
ring: true,
|
||||
hoverLabel: true,
|
||||
wave: true,
|
||||
avatar: true
|
||||
},
|
||||
notifications: { pulseOnAdminReply: true }
|
||||
};
|
||||
}
|
||||
@@ -844,6 +851,7 @@ function formatAttachment(row) {
|
||||
function formatSite(site) {
|
||||
const settings = parseJson(site.settings_json, defaultSettings());
|
||||
settings.notifications = { ...defaultSettings().notifications, ...(settings.notifications || {}) };
|
||||
settings.launcherEffects = { ...defaultSettings().launcherEffects, ...(settings.launcherEffects || {}) };
|
||||
return {
|
||||
id: site.id,
|
||||
siteKey: site.site_key,
|
||||
|
||||
Reference in New Issue
Block a user