Add User (uid) Welcome Notification (#6045)

This commit is contained in:
acardinale
2017-11-07 15:17:27 +01:00
committed by Barış Soner Uşaklı
parent 78e65ab8c8
commit 5ed6b5c414
3 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
{
"notifications": "Notifications",
"welcome-notification": "Welcome Notification",
"welcome-notification-link": "Welcome Notification Link"
"welcome-notification-link": "Welcome Notification Link",
"welcome-notification-uid": "Welcome Notification User (UID)"
}

View File

@@ -320,6 +320,7 @@ UserNotifications.sendWelcomeNotification = function (uid, callback) {
bodyShort: meta.config.welcomeNotification,
path: path,
nid: 'welcome_' + uid,
from: meta.config.welcomeUid ? meta.config.welcomeUid : null,
}, next);
},
function (notification, next) {

View File

@@ -6,6 +6,7 @@
<form>
<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 />
</form>
</div>
</div>