Add constant form 'mention'
Этот коммит содержится в:
@@ -20,6 +20,7 @@ const Utils = require('../utils/utils.jsx');
|
|||||||
const Constants = require('../utils/constants.jsx');
|
const Constants = require('../utils/constants.jsx');
|
||||||
const Preferences = Constants.Preferences;
|
const Preferences = Constants.Preferences;
|
||||||
const TutorialSteps = Constants.TutorialSteps;
|
const TutorialSteps = Constants.TutorialSteps;
|
||||||
|
const NotificationPrefs = Constants.NotificationPrefs;
|
||||||
|
|
||||||
const Tooltip = ReactBootstrap.Tooltip;
|
const Tooltip = ReactBootstrap.Tooltip;
|
||||||
const OverlayTrigger = ReactBootstrap.OverlayTrigger;
|
const OverlayTrigger = ReactBootstrap.OverlayTrigger;
|
||||||
@@ -76,7 +77,7 @@ export default class Sidebar extends React.Component {
|
|||||||
if (ch.type === 'D') {
|
if (ch.type === 'D') {
|
||||||
chMentionCount = chUnreadCount;
|
chMentionCount = chUnreadCount;
|
||||||
chUnreadCount = 0;
|
chUnreadCount = 0;
|
||||||
} else if (chMember.notify_props && chMember.notify_props.mark_unread === 'mention') {
|
} else if (chMember.notify_props && chMember.notify_props.mark_unread === NotificationPrefs.MENTION) {
|
||||||
chUnreadCount = 0;
|
chUnreadCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -384,5 +384,8 @@ module.exports = {
|
|||||||
BOTTOM: 1,
|
BOTTOM: 1,
|
||||||
POST: 2,
|
POST: 2,
|
||||||
SIDEBAR_OPEN: 3
|
SIDEBAR_OPEN: 3
|
||||||
|
},
|
||||||
|
NotificationPrefs: {
|
||||||
|
MENTION: 'mention'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user