[frontend] Remove description in trigger and badword to have more simple view
This commit is contained in:
parent
bfe4485996
commit
8ca3252e66
|
@ -5,8 +5,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="dashboard">
|
<div class="dashboard">
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-title> Hood: {{ (hood$ | async).name }} </mat-card-title>
|
<mat-card-title>
|
||||||
<mat-card-subtitle>Dashboard</mat-card-subtitle>
|
Your Hood - <strong>{{ (hood$ | async).name }}</strong>
|
||||||
|
</mat-card-title>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
<mat-tab-group>
|
<mat-tab-group>
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-title>Badwords</mat-card-title>
|
<mat-card-title>Badwords</mat-card-title>
|
||||||
<mat-card-subtitle
|
|
||||||
>Discards an incoming message that matches the pattern (spam-protection,
|
|
||||||
insult-filtering)</mat-card-subtitle
|
|
||||||
>
|
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<form class="input" [formGroup]="regexForm" (ngSubmit)="onSubmit()">
|
<form class="input" [formGroup]="regexForm" (ngSubmit)="onSubmit()">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
|
@ -17,7 +13,6 @@
|
||||||
</form>
|
</form>
|
||||||
<ng-container *ngIf="badwords$ | async as badwords">
|
<ng-container *ngIf="badwords$ | async as badwords">
|
||||||
<mat-list *ngIf="badwords.length !== 0; else empty">
|
<mat-list *ngIf="badwords.length !== 0; else empty">
|
||||||
<mat-divider></mat-divider>
|
|
||||||
<mat-list-item *ngFor="let badword of badwords">
|
<mat-list-item *ngFor="let badword of badwords">
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<div class="regex">
|
<div class="regex">
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-title>Triggers</mat-card-title>
|
<mat-card-title>Triggers</mat-card-title>
|
||||||
<mat-card-subtitle
|
|
||||||
>Only shares an incoming message if it matches a pattern (topic-setting).
|
|
||||||
<strong>Add at least one trigger!</strong></mat-card-subtitle
|
|
||||||
>
|
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<form class="input" [formGroup]="regexForm" (ngSubmit)="onSubmit()">
|
<form class="input" [formGroup]="regexForm" (ngSubmit)="onSubmit()">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
|
@ -17,7 +13,6 @@
|
||||||
</form>
|
</form>
|
||||||
<ng-container *ngIf="triggers$ | async as triggers">
|
<ng-container *ngIf="triggers$ | async as triggers">
|
||||||
<mat-list *ngIf="triggers.length !== 0; else empty">
|
<mat-list *ngIf="triggers.length !== 0; else empty">
|
||||||
<mat-divider></mat-divider>
|
|
||||||
<mat-list-item *ngFor="let trigger of triggers">
|
<mat-list-item *ngFor="let trigger of triggers">
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<div class="regex">
|
<div class="regex">
|
||||||
|
|
Loading…
Reference in a new issue