[frontend] Add email domain

This commit is contained in:
Cathy Hu 2020-08-31 17:30:38 +02:00
parent f387e8b6c6
commit e775c4f8f6
3 changed files with 4 additions and 3 deletions

View file

@ -37,7 +37,7 @@
</ng-template> </ng-template>
<mat-list-item *ngFor="let email of emails"> <mat-list-item *ngFor="let email of emails">
<div class="entry"> <div class="entry">
{{ email.name }} {{ email.name }}@{{ domain }}
<button <button
mat-icon-button mat-icon-button
[matMenuTriggerFor]="menu" [matMenuTriggerFor]="menu"

View file

@ -2,12 +2,11 @@ import { Component, OnInit, Input } from '@angular/core';
import { Observable } from 'rxjs/internal/Observable'; import { Observable } from 'rxjs/internal/Observable';
import { EmailService, HoodsService } from 'src/app/core/api'; import { EmailService, HoodsService } from 'src/app/core/api';
import { MatDialog } from '@angular/material/dialog'; import { MatDialog } from '@angular/material/dialog';
import { Router } from '@angular/router';
import { EmailDialogComponent } from '../email-dialog/email-dialog.component'; import { EmailDialogComponent } from '../email-dialog/email-dialog.component';
import { EmailInfoDialogComponent } from '../email-info-dialog/email-info-dialog.component'; import { EmailInfoDialogComponent } from '../email-info-dialog/email-info-dialog.component';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { BotStatus } from '../../../core/model/status'; import { BotStatus } from '../../../core/model/status';
import { MatSnackBar } from '@angular/material/snack-bar'; import { MatSnackBar } from '@angular/material/snack-bar';
import { environment } from 'src/environments/environment';
@Component({ @Component({
selector: 'app-email-settings', selector: 'app-email-settings',
@ -18,6 +17,7 @@ export class EmailSettingsComponent implements OnInit {
@Input() hoodId; @Input() hoodId;
emails$: Observable<Array<any>>; emails$: Observable<Array<any>>;
start = false; start = false;
domain = environment.EMAIL_DOMAIN;
constructor( constructor(
private emailService: EmailService, private emailService: EmailService,

View file

@ -5,6 +5,7 @@
export const environment = { export const environment = {
production: false, production: false,
API_BASE_PATH: 'http://localhost:8000', API_BASE_PATH: 'http://localhost:8000',
EMAIL_DOMAIN: 'localhost',
}; };
/* /*