Files
hrynco-notification-service/HrynCo.NotificationService.Web/wwwroot/js/template-channel-navigation.js
T
agrynco aba4173827 feat(templates): add localized push templates and actions
Share template keys across email and push with independent editors and revisions. Render localized actions and preserve version-one delivery.

Ref: IT-1627
2026-10-31 09:38:05 +02:00

11 lines
373 B
JavaScript

(() => {
const key = document.getElementById('Key');
document.querySelectorAll('[data-template-channel]').forEach(link => {
link.addEventListener('click', () => {
const url = new URL(link.href);
url.searchParams.set('key', key?.value ?? url.searchParams.get('key') ?? '');
link.href = url.href;
});
});
})();