Add configurable new message effects
This commit is contained in:
+8
-4
@@ -83,11 +83,13 @@ $("#settingsForm").addEventListener("submit", async (event) => {
|
||||
breathe: form.get("launcherBreathe") === "on",
|
||||
ring: form.get("launcherRing") === "on",
|
||||
hoverLabel: form.get("launcherHoverLabel") === "on",
|
||||
wave: form.get("launcherWave") === "on",
|
||||
avatar: form.get("launcherAvatar") === "on"
|
||||
};
|
||||
settings.notifications = settings.notifications || {};
|
||||
settings.notifications.pulseOnAdminReply = form.get("pulseOnAdminReply") === "on";
|
||||
settings.notifications.pulseOnAdminReply = form.get("messagePulse") === "on";
|
||||
settings.notifications.badgeOnAdminReply = form.get("messageBadge") === "on";
|
||||
settings.notifications.labelOnAdminReply = form.get("messageLabel") === "on";
|
||||
settings.notifications.wiggleOnAdminReply = form.get("messageWiggle") === "on";
|
||||
await saveSite({ settings, isOnline: state.site.isOnline });
|
||||
$("#settingsPanel").classList.add("hidden");
|
||||
});
|
||||
@@ -334,9 +336,11 @@ function renderSite() {
|
||||
form.launcherBreathe.checked = s.launcherEffects?.breathe !== false;
|
||||
form.launcherRing.checked = s.launcherEffects?.ring !== false;
|
||||
form.launcherHoverLabel.checked = s.launcherEffects?.hoverLabel !== false;
|
||||
form.launcherWave.checked = s.launcherEffects?.wave !== false;
|
||||
form.launcherAvatar.checked = s.launcherEffects?.avatar !== false;
|
||||
form.pulseOnAdminReply.checked = s.notifications?.pulseOnAdminReply !== false;
|
||||
form.messagePulse.checked = s.notifications?.pulseOnAdminReply !== false;
|
||||
form.messageBadge.checked = s.notifications?.badgeOnAdminReply !== false;
|
||||
form.messageLabel.checked = s.notifications?.labelOnAdminReply !== false;
|
||||
form.messageWiggle.checked = s.notifications?.wiggleOnAdminReply !== false;
|
||||
}
|
||||
|
||||
function renderConversations() {
|
||||
|
||||
Reference in New Issue
Block a user