mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
#631 dialog
This commit is contained in:
@@ -35,6 +35,10 @@
|
|||||||
<script src="node_modules/pdfjs-dist/build/pdf.worker.js"></script>
|
<script src="node_modules/pdfjs-dist/build/pdf.worker.js"></script>
|
||||||
<script src="node_modules/pdfjs-dist/web/pdf_viewer.js"></script>
|
<script src="node_modules/pdfjs-dist/web/pdf_viewer.js"></script>
|
||||||
|
|
||||||
|
<!-- Polyfill(s) for dialogs -->
|
||||||
|
<script src="node_modules/dialog-polyfill/dialog-polyfill.js"></script>
|
||||||
|
<link rel="stylesheet" type="text/css" href="node_modules/dialog-polyfill/dialog-polyfill.css" />
|
||||||
|
|
||||||
<!-- 2. Configure SystemJS -->
|
<!-- 2. Configure SystemJS -->
|
||||||
<script src="systemjs.config.js"></script>
|
<script src="systemjs.config.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
@@ -87,7 +87,8 @@
|
|||||||
"ng2-activiti-tasklist": "0.3.3",
|
"ng2-activiti-tasklist": "0.3.3",
|
||||||
"ng2-activiti-processlist": "0.3.3",
|
"ng2-activiti-processlist": "0.3.3",
|
||||||
"ng2-alfresco-webscript": "0.3.2",
|
"ng2-alfresco-webscript": "0.3.2",
|
||||||
"ng2-alfresco-tag": "0.3.2"
|
"ng2-alfresco-tag": "0.3.2",
|
||||||
|
"dialog-polyfill": "^0.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/core-js": "^0.9.32",
|
"@types/core-js": "^0.9.32",
|
||||||
|
@@ -21,6 +21,7 @@ import { TaskDetailsModel } from '../models/task-details.model';
|
|||||||
import { ActivitiTaskListService } from './../services/activiti-tasklist.service';
|
import { ActivitiTaskListService } from './../services/activiti-tasklist.service';
|
||||||
|
|
||||||
declare let componentHandler: any;
|
declare let componentHandler: any;
|
||||||
|
declare let dialogPolyfill: any;
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'activiti-start-task',
|
selector: 'activiti-start-task',
|
||||||
@@ -85,6 +86,9 @@ export class ActivitiStartProcessButton implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public showDialog() {
|
public showDialog() {
|
||||||
|
if (!this.dialog.nativeElement.showModal) {
|
||||||
|
dialogPolyfill.registerDialog(this.dialog.nativeElement);
|
||||||
|
}
|
||||||
if (this.dialog) {
|
if (this.dialog) {
|
||||||
this.dialog.nativeElement.showModal();
|
this.dialog.nativeElement.showModal();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user