mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-14 05:06:16 -08:00
feat(portals): make connection cooldown configurable in desktop settings (#1536)
This commit is contained in:
1 parent
de81e3b238
commit
0245d73d78
48 files changed
+787
-27
No files matched your search
@@ -1,8 +1,4 @@
|
||||
<section
|
||||
class="settings-group"
|
||||
id="general"
|
||||
[formGroup]="form()"
|
||||
>
|
||||
<section class="settings-group" id="general" [formGroup]="form()">
|
||||
<header class="settings-group__header">
|
||||
<div class="settings-group__header-icon">
|
||||
<mat-icon>settings</mat-icon>
|
||||
@@ -204,3 +200,48 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@if (supportsPortalConnectivityGuard()) {
|
||||
<section
|
||||
class="settings-group"
|
||||
[formGroup]="form()"
|
||||
data-test-id="portal-connectivity-setting"
|
||||
>
|
||||
<header class="settings-group__header">
|
||||
<div class="settings-group__header-icon">
|
||||
<mat-icon>hub</mat-icon>
|
||||
</div>
|
||||
<div class="settings-group__header-text">
|
||||
<h3>{{ 'SETTINGS.PORTAL_CONNECTIONS' | translate }}</h3>
|
||||
</div>
|
||||
</header>
|
||||
<div class="setting-item">
|
||||
<div class="setting-item__meta">
|
||||
<h4 id="portal-connectivity-label">
|
||||
{{ 'SETTINGS.PORTAL_CONNECTIVITY_GUARD' | translate }}
|
||||
</h4>
|
||||
<p id="portal-connectivity-description">
|
||||
{{
|
||||
'SETTINGS.PORTAL_CONNECTIVITY_GUARD_DESCRIPTION'
|
||||
| translate
|
||||
}}
|
||||
</p>
|
||||
@if (form().get('portalConnectivityGuard')?.value === false) {
|
||||
<p>
|
||||
{{
|
||||
'SETTINGS.PORTAL_CONNECTIVITY_GUARD_DISABLED'
|
||||
| translate
|
||||
}}
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
<div class="setting-item__control setting-item__toggle">
|
||||
<mat-checkbox
|
||||
formControlName="portalConnectivityGuard"
|
||||
aria-labelledby="portal-connectivity-label"
|
||||
aria-describedby="portal-connectivity-description"
|
||||
data-test-id="portal-connectivity-toggle"
|
||||
></mat-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
}
|
||||
Reference in new issue
Block a user