Feat/selection title reports access (#21)
Tests / frontend-test (push) Successful in 1m19s

Co-authored-by: gorbenko.pavel <gorbenko.pavel@tansu.kz>
Reviewed-on: http://git.tnsu.kz/timur.gorodetskiy/request-portal/pulls/21
This commit was merged in pull request #21.
This commit is contained in:
2026-09-25 04:43:37 +00:00
parent ab21683377
commit ec94de3c1b
10 changed files with 144 additions and 8372 deletions
@@ -45,6 +45,28 @@ export function getApprovalApiBaseUrl(): string {
return _approvalApiBaseUrl;
}
// Уведомления согласующим (поток Power Automate, см. approval/notify.service.ts).
// Настраивается свойствами веб-части notificationsEnabled / notifyOnlyTo — тот
// же модульный синглтон, что и у approvalApiBaseUrl выше.
// enabled — false выключает рассылку целиком;
// onlyTo — непустой адрес: письма уходят ТОЛЬКО если активный шаг назначен
// на него (обкатка рассылки); пусто — всем.
let _notificationsEnabled = true;
let _notifyOnlyTo = '';
export function setNotificationSettings(enabled: boolean, onlyTo: string): void {
_notificationsEnabled = enabled;
_notifyOnlyTo = (onlyTo || '').trim();
}
export function getNotificationsEnabled(): boolean {
return _notificationsEnabled;
}
export function getNotifyOnlyTo(): string {
return _notifyOnlyTo;
}
/**
* Справочники (Dictionary API) — тот же gateway api.tnsu.kz и тот же AAD-app
* (APPROVAL_API_CLIENT_ID), но другой путь/сервис. Используется, например, для