mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-01-27 00:59:11 +00:00
Updated Email Template + Lunch Break
This commit is contained in:
parent
59b4a11e70
commit
dbaa7d85fd
@ -1,25 +1,25 @@
|
||||
<mat-card fxLayoutGap>
|
||||
<p>
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Send To:</mat-label>
|
||||
<input matInput>
|
||||
</mat-form-field>
|
||||
</p>
|
||||
<p mat-dialog-title>Send Email Sample</p>
|
||||
|
||||
<p>
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Subject</mat-label>
|
||||
<input matInput>
|
||||
</mat-form-field>
|
||||
</p>
|
||||
<p>
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Textarea</mat-label>
|
||||
<textarea matInput></textarea>
|
||||
</mat-form-field>
|
||||
</p>
|
||||
<div mat-dialog-actions>
|
||||
<button mat-button [mat-dialog-close]="">Exit</button>
|
||||
<button mat-raised-button color=" primary" (click)="onConfirm()">Send</button>
|
||||
</div>
|
||||
</mat-card>
|
||||
<div display-2>
|
||||
<p>
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Send To:</mat-label>
|
||||
<input matInput>
|
||||
</mat-form-field>
|
||||
</p><p>
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Subject</mat-label>
|
||||
<input matInput>
|
||||
</mat-form-field>
|
||||
</p><p>
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Textarea</mat-label>
|
||||
<textarea matInput rows="1xw0"></textarea>
|
||||
</mat-form-field>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
<div mat-dialog-actions>
|
||||
<button mat-button [mat-dialog-close]="">Exit</button>
|
||||
<button mat-raised-button color="primary">Send</button>
|
||||
</div>
|
@ -1,15 +1,15 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Component, Inject, OnInit } from '@angular/core';
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
|
||||
@Component({
|
||||
selector: 'app-test-email-dialog',
|
||||
templateUrl: './test-email-dialog.component.html',
|
||||
styleUrls: ['./test-email-dialog.component.scss']
|
||||
})
|
||||
export class TestEmailDialogComponent implements OnInit {
|
||||
export class TestEmailDialogComponent {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<TestEmailDialogComponent>
|
||||
) {
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -24,6 +24,7 @@ import { FileMetaDialogData, NewFileDialogData } from '../_interfaces/dialog-dat
|
||||
import { ImportEvent } from '../_interfaces/import-event';
|
||||
import { DiagramComponent } from '../diagram/diagram.component';
|
||||
import { ScriptDocDialogComponent } from '../_dialogs/script-doc-dialog/script-doc-dialog.component';
|
||||
import { TestEmailDialogComponent } from '../_dialogs/test-email-dialog/test-email-dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-modeler',
|
||||
@ -276,7 +277,13 @@ export class ModelerComponent implements AfterViewInit {
|
||||
}
|
||||
|
||||
testEmailTemplate(documentation: string) {
|
||||
//this.displayScriptDocumentation(documentation);
|
||||
const dialogRef = this.dialog.open(TestEmailDialogComponent);
|
||||
|
||||
dialogRef.afterClosed().subscribe((data: FileMetaDialogData) => {
|
||||
if (data && data.fileName) {
|
||||
this._upsertFileMeta(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
testMarkdown(documentation: string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user