47 lines
1.3 KiB
HTML
47 lines
1.3 KiB
HTML
<h2 mat-dialog-title>Create new inbox</h2>
|
|
|
|
<mat-dialog-content>
|
|
<form class="input" [formGroup]="form">
|
|
<mat-form-field>
|
|
<mat-label>Mastodon Instance URL</mat-label>
|
|
<input matInput formControlName="instance_url" />
|
|
<mat-error
|
|
*ngIf="
|
|
form.controls.instance_url.errors &&
|
|
form.controls.instance_url.errors.required
|
|
"
|
|
>Mastodon Instance URL is required</mat-error
|
|
>
|
|
</mat-form-field>
|
|
<mat-form-field>
|
|
<mat-label>Mastodon E-Mail</mat-label>
|
|
<input matInput formControlName="email" />
|
|
<mat-error
|
|
*ngIf="
|
|
form.controls.email.errors &&
|
|
form.controls.email.errors.required
|
|
"
|
|
>Mastodon E-Mail is required</mat-error
|
|
>
|
|
</mat-form-field>
|
|
<mat-form-field>
|
|
<mat-label>Mastodon Password</mat-label>
|
|
<input matInput formControlName="password" />
|
|
<mat-error
|
|
*ngIf="
|
|
form.controls.password.errors &&
|
|
form.controls.password.errors.required
|
|
"
|
|
>Mastodon Password is required</mat-error
|
|
>
|
|
</mat-form-field>
|
|
</form>
|
|
</mat-dialog-content>
|
|
|
|
<mat-dialog-actions align="end">
|
|
<button mat-button (click)="onCancel()">Cancel</button>
|
|
<button mat-button (click)="onSubmit()" cdkFocusInitial>
|
|
Add Mastodon bot
|
|
</button>
|
|
</mat-dialog-actions>
|