mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 03:33:54 +00:00
stub out domain rules page
This commit is contained in:
20
src/app/settings/domain-rules.component.html
Normal file
20
src/app/settings/domain-rules.component.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="page-header">
|
||||
<h1>{{'domainRules' | i18n}}</h1>
|
||||
</div>
|
||||
<p>{{'domainRulesDesc' | i18n}}</p>
|
||||
<h2>{{'customEqDomains' | i18n}}</h2>
|
||||
<i class="fa fa-spinner fa-spin text-muted" *ngIf="loading"></i>
|
||||
<table class="table table-hover table-list" *ngIf="!loading && custom.length > 0">
|
||||
<tbody>
|
||||
<tr *ngFor="let d of custom">
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>{{'globalEqDomains' | i18n}}</h2>
|
||||
<i class="fa fa-spinner fa-spin text-muted" *ngIf="loading"></i>
|
||||
<table class="table table-hover table-list" *ngIf="!loading && global.length > 0">
|
||||
<tbody>
|
||||
<tr *ngFor="let d of global">
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
36
src/app/settings/domain-rules.component.ts
Normal file
36
src/app/settings/domain-rules.component.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import {
|
||||
Component,
|
||||
OnInit,
|
||||
} from '@angular/core';
|
||||
|
||||
import { ToasterService } from 'angular2-toaster';
|
||||
import { Angulartics2 } from 'angulartics2';
|
||||
|
||||
import { ApiService } from 'jslib/abstractions/api.service';
|
||||
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
||||
import { I18nService } from 'jslib/abstractions/i18n.service';
|
||||
import { MessagingService } from 'jslib/abstractions/messaging.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-domain-rules',
|
||||
templateUrl: 'domain-rules.component.html',
|
||||
})
|
||||
export class DomainRulesComponent implements OnInit {
|
||||
loading = true;
|
||||
custom: string[] = [];
|
||||
global: string[] = [];
|
||||
formPromise: Promise<any>;
|
||||
|
||||
constructor(private apiService: ApiService, private i18nService: I18nService,
|
||||
private analytics: Angulartics2, private toasterService: ToasterService,
|
||||
private cryptoService: CryptoService, private messagingService: MessagingService) { }
|
||||
|
||||
async ngOnInit() {
|
||||
const response = await this.apiService.getSettingsDomains();
|
||||
this.loading = false;
|
||||
}
|
||||
|
||||
async submit() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user