From e4e633feef7b136d0eb389c06228b8f003ca688e Mon Sep 17 00:00:00 2001 From: Karl Prieb Date: Fri, 26 Jan 2018 19:57:29 -0200 Subject: [PATCH] notification preferences --- packages/rocketchat-i18n/i18n/en.i18n.json | 3 + .../views/pushNotificationsFlexTab.html | 271 +++++------------- .../client/views/pushNotificationsFlexTab.js | 233 ++++++++------- .../server/models/Subscriptions.js | 2 +- .../client/imports/components/userInfo.css | 5 + 5 files changed, 190 insertions(+), 324 deletions(-) diff --git a/packages/rocketchat-i18n/i18n/en.i18n.json b/packages/rocketchat-i18n/i18n/en.i18n.json index 852bb7bafec..d2599b39944 100644 --- a/packages/rocketchat-i18n/i18n/en.i18n.json +++ b/packages/rocketchat-i18n/i18n/en.i18n.json @@ -175,6 +175,7 @@ "Agent": "Agent", "Agent_added": "Agent added", "Agent_removed": "Agent removed", + "Alerts": "Alerts", "Alias": "Alias", "Alias_Format": "Alias Format", "Alias_Format_Description": "Import messages from Slack with an alias; %s is replaced by the username of the user. If empty, no alias will be used.", @@ -259,6 +260,7 @@ "AtlassianCrowd": "Atlassian Crowd", "Attachment_File_Uploaded": "File Uploaded", "Attribute_handling": "Attribute handling", + "Audio": "Audio", "Audio_message": "Audio message", "Audio_Notification_Value_Description": "Can be any custom sound or the default ones: beep, chelle, ding, droplet, highbell, seasons", "Audio_Notifications_Default_Alert": "Audio Notifications Default Alert", @@ -1346,6 +1348,7 @@ "Notifications": "Notifications", "Notifications_Always_Notify_Mobile" : "Always notify mobile", "Notifications_Always_Notify_Mobile_Description" : "Choose to always notify mobile device regardless of presence status.", + "Notifications_Duration": "Notifications_Duration", "Notifications_Max_Room_Members": "Max Room Members Before Disabling All Message Notifications", "Notifications_Max_Room_Members_Description": "Max number of members in room when notifications for all messages gets disabled. Users can still change per room setting to receive all notifications on an individual basis. (0 to disable)", "Notifications_Muted_Description": "If you choose to mute everything, you won't see the room highlight in the list when there are new messages, except for mentions. Muting notifications will override notifications settings.", diff --git a/packages/rocketchat-push-notifications/client/views/pushNotificationsFlexTab.html b/packages/rocketchat-push-notifications/client/views/pushNotificationsFlexTab.html index 986b2e0239d..0c79f6ac792 100644 --- a/packages/rocketchat-push-notifications/client/views/pushNotificationsFlexTab.html +++ b/packages/rocketchat-push-notifications/client/views/pushNotificationsFlexTab.html @@ -2,7 +2,7 @@