mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-02-10 07:27:32 +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-dialog-title>Send Email Sample</p>
|
||||||
|
|
||||||
|
<div display-2>
|
||||||
<p>
|
<p>
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>Send To:</mat-label>
|
<mat-label>Send To:</mat-label>
|
||||||
<input matInput>
|
<input matInput>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</p>
|
</p><p>
|
||||||
|
|
||||||
<p>
|
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>Subject</mat-label>
|
<mat-label>Subject</mat-label>
|
||||||
<input matInput>
|
<input matInput>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</p>
|
</p><p>
|
||||||
<p>
|
|
||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
<mat-label>Textarea</mat-label>
|
<mat-label>Textarea</mat-label>
|
||||||
<textarea matInput></textarea>
|
<textarea matInput rows="1xw0"></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
<div mat-dialog-actions>
|
<div mat-dialog-actions>
|
||||||
<button mat-button [mat-dialog-close]="">Exit</button>
|
<button mat-button [mat-dialog-close]="">Exit</button>
|
||||||
<button mat-raised-button color=" primary" (click)="onConfirm()">Send</button>
|
<button mat-raised-button color="primary">Send</button>
|
||||||
</div>
|
</div>
|
||||||
</mat-card>
|
|
@ -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({
|
@Component({
|
||||||
selector: 'app-test-email-dialog',
|
selector: 'app-test-email-dialog',
|
||||||
templateUrl: './test-email-dialog.component.html',
|
templateUrl: './test-email-dialog.component.html',
|
||||||
styleUrls: ['./test-email-dialog.component.scss']
|
styleUrls: ['./test-email-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class TestEmailDialogComponent implements OnInit {
|
export class TestEmailDialogComponent {
|
||||||
|
|
||||||
constructor() { }
|
constructor(
|
||||||
|
public dialogRef: MatDialogRef<TestEmailDialogComponent>
|
||||||
ngOnInit(): void {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@ import { FileMetaDialogData, NewFileDialogData } from '../_interfaces/dialog-dat
|
|||||||
import { ImportEvent } from '../_interfaces/import-event';
|
import { ImportEvent } from '../_interfaces/import-event';
|
||||||
import { DiagramComponent } from '../diagram/diagram.component';
|
import { DiagramComponent } from '../diagram/diagram.component';
|
||||||
import { ScriptDocDialogComponent } from '../_dialogs/script-doc-dialog/script-doc-dialog.component';
|
import { ScriptDocDialogComponent } from '../_dialogs/script-doc-dialog/script-doc-dialog.component';
|
||||||
|
import { TestEmailDialogComponent } from '../_dialogs/test-email-dialog/test-email-dialog.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-modeler',
|
selector: 'app-modeler',
|
||||||
@ -276,7 +277,13 @@ export class ModelerComponent implements AfterViewInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
testEmailTemplate(documentation: string) {
|
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) {
|
testMarkdown(documentation: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user