2020-08-31 09:14:50 +02:00
|
|
|
<form #form (ngSubmit)="submit()">
|
|
|
|
<header>
|
|
|
|
<div class="left">
|
2022-07-25 12:43:10 +02:00
|
|
|
<button type="button" routerLink="/tabs/settings">
|
2022-02-11 17:30:23 +01:00
|
|
|
<span class="header-icon"><i class="bwi bwi-angle-left" aria-hidden="true"></i></span>
|
|
|
|
<span>{{ "back" | i18n }}</span>
|
2022-07-25 12:43:10 +02:00
|
|
|
</button>
|
2020-08-31 09:14:50 +02:00
|
|
|
</div>
|
2021-11-02 23:28:53 +01:00
|
|
|
<h1 class="center">
|
2020-08-31 09:14:50 +02:00
|
|
|
<span class="title">{{ "excludedDomains" | i18n }}</span>
|
2021-11-02 23:28:53 +01:00
|
|
|
</h1>
|
2020-08-31 09:14:50 +02:00
|
|
|
<div class="right">
|
2022-07-25 12:43:10 +02:00
|
|
|
<button type="submit">{{ "save" | i18n }}</button>
|
2020-08-31 09:14:50 +02:00
|
|
|
</div>
|
|
|
|
</header>
|
2022-04-29 02:06:33 +02:00
|
|
|
<main tabindex="-1">
|
2020-08-31 09:14:50 +02:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-content">
|
2023-11-21 02:53:03 +01:00
|
|
|
<div class="box-footer" [ngStyle]="{ marginTop: '10px' }">
|
|
|
|
{{
|
|
|
|
accountSwitcherEnabled
|
|
|
|
? ("excludedDomainsDescAlt" | i18n)
|
|
|
|
: ("excludedDomainsDesc" | i18n)
|
|
|
|
}}
|
|
|
|
</div>
|
2020-08-31 09:14:50 +02:00
|
|
|
<ng-container *ngIf="excludedDomains">
|
|
|
|
<div
|
|
|
|
class="box-content-row box-content-row-multi"
|
|
|
|
appBoxRow
|
|
|
|
*ngFor="let domain of excludedDomains; let i = index; trackBy: trackByFunction"
|
|
|
|
>
|
2021-07-31 21:03:51 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
appStopClick
|
|
|
|
(click)="removeUri(i)"
|
|
|
|
appA11yTitle="{{ 'remove' | i18n }}"
|
|
|
|
>
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-minus-circle bwi-lg" aria-hidden="true"></i>
|
2021-07-31 21:03:51 +02:00
|
|
|
</button>
|
2020-08-31 09:14:50 +02:00
|
|
|
<div class="row-main">
|
2023-03-21 11:28:15 +01:00
|
|
|
<label for="excludedDomain{{ i }}">{{ "uriPosition" | i18n: i + 1 }}</label>
|
2020-08-31 09:14:50 +02:00
|
|
|
<input
|
|
|
|
id="excludedDomain{{ i }}"
|
|
|
|
name="excludedDomain{{ i }}"
|
|
|
|
type="text"
|
|
|
|
[(ngModel)]="domain.uri"
|
|
|
|
placeholder="{{ 'ex' | i18n }} https://google.com"
|
|
|
|
inputmode="url"
|
|
|
|
appInputVerbatim
|
|
|
|
/>
|
|
|
|
<label for="currentUris{{ i }}" class="sr-only">
|
|
|
|
{{ "currentUri" | i18n }} {{ i + 1 }}
|
|
|
|
</label>
|
|
|
|
<select
|
2021-07-31 21:03:51 +02:00
|
|
|
*ngIf="currentUris && currentUris.length"
|
2020-08-31 09:14:50 +02:00
|
|
|
id="currentUris{{ i }}"
|
|
|
|
name="currentUris{{ i }}"
|
|
|
|
[(ngModel)]="domain.uri"
|
|
|
|
[hidden]="!domain.showCurrentUris"
|
|
|
|
>
|
|
|
|
<option [ngValue]="null">-- {{ "select" | i18n }} --</option>
|
|
|
|
<option *ngFor="let u of currentUris" [ngValue]="u">{{ u }}</option>
|
2021-07-31 21:03:51 +02:00
|
|
|
</select>
|
2020-08-31 09:14:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="action-buttons">
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2020-08-31 09:14:50 +02:00
|
|
|
type="button"
|
|
|
|
*ngIf="currentUris && currentUris.length"
|
2021-07-31 21:03:51 +02:00
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
2020-08-31 09:14:50 +02:00
|
|
|
appA11yTitle="{{ 'toggleCurrentUris' | i18n }}"
|
|
|
|
(click)="toggleUriInput(domain)"
|
2022-05-07 17:53:45 +02:00
|
|
|
[attr.aria-pressed]="domain.showCurrentUris === true"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2022-01-28 11:53:06 +01:00
|
|
|
<i aria-hidden="true" class="bwi bwi-lg bwi-list"></i>
|
2021-07-31 21:03:51 +02:00
|
|
|
</button>
|
2020-08-31 09:14:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-07-31 21:03:51 +02:00
|
|
|
type="button"
|
|
|
|
appStopClick
|
|
|
|
(click)="addUri()"
|
2022-12-19 18:50:47 +01:00
|
|
|
class="box-content-row box-content-row-newmulti single-line"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-plus-circle bwi-fw bwi-lg" aria-hidden="true"></i> {{ "newUri" | i18n }}
|
2021-07-31 21:03:51 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-29 02:06:33 +02:00
|
|
|
</main>
|
2020-08-31 09:14:50 +02:00
|
|
|
</form>
|