mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
closes #6456
This commit is contained in:
@@ -2,5 +2,6 @@
|
||||
"notifications": "Notifications",
|
||||
"welcome-notification": "Welcome Notification",
|
||||
"welcome-notification-link": "Welcome Notification Link",
|
||||
"welcome-notification-uid": "Welcome Notification User (UID)"
|
||||
"welcome-notification-uid": "Welcome Notification User (UID)",
|
||||
"notification-alert-timeout": "Notification Alert Timeout"
|
||||
}
|
||||
@@ -70,7 +70,7 @@ define('notifications', ['sounds', 'translator', 'components', 'navigator', 'ben
|
||||
var payload = {
|
||||
alert_id: 'new_notif',
|
||||
title: '[[notifications:new_notification]]',
|
||||
timeout: 2000,
|
||||
timeout: parseInt(config.notificationAlertTimeout, 10) || 5000,
|
||||
};
|
||||
|
||||
if (notifData.path) {
|
||||
|
||||
@@ -62,6 +62,7 @@ apiController.loadConfig = function (req, callback) {
|
||||
config.bootswatchSkin = meta.config.bootswatchSkin || 'noskin';
|
||||
config.defaultBootswatchSkin = meta.config.bootswatchSkin || 'noskin';
|
||||
config.enablePostHistory = parseInt(meta.config.enablePostHistory || 1, 10) === 1;
|
||||
config.notificationAlertTimeout = parseInt(meta.config.notificationAlertTimeout, 10) || 5000;
|
||||
|
||||
if (config.useOutgoingLinksPage) {
|
||||
config.outgoingLinksWhitelist = meta.config['outgoingLinks:whitelist'];
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
<strong>[[admin/settings/notifications:welcome-notification]]</strong><br /> <textarea class="form-control" data-field="welcomeNotification"></textarea><br />
|
||||
<strong>[[admin/settings/notifications:welcome-notification-link]]</strong><br /> <input type="text" class="form-control" data-field="welcomeLink"><br />
|
||||
<strong>[[admin/settings/notifications:welcome-notification-uid]]</strong><br /> <input type="text" class="form-control" data-field="welcomeUid"><br />
|
||||
|
||||
<strong>[[admin/settings/notifications:notification-alert-timeout]]</strong><br /> <input type="text" class="form-control" data-field="notificationAlertTimeout" placeholder="5000"><br />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user