fix dialog polyfill usage

This commit is contained in:
Denys Vuika
2016-12-16 14:25:06 +00:00
parent 12b361acc8
commit a511c0fd69
5 changed files with 4 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ import 'material-design-icons/iconfont/material-icons.css';
import 'flag-icon-css/css/flag-icon.min.css';
// Polyfill(s) for dialogs
import 'dialog-polyfill/dialog-polyfill';
require('script!dialog-polyfill/dialog-polyfill');
import 'dialog-polyfill/dialog-polyfill.css';
// app content

View File

@@ -106,10 +106,6 @@ module.exports = {
plugins: [
new webpack.ProvidePlugin({
'dialogPolyfill': 'dialog-polyfill/dialog-polyfill'
}),
new CopyWebpackPlugin([
{ from: 'versions.json' }
]),

View File

@@ -21,7 +21,7 @@ import { ActivitiTaskListService } from './../services/activiti-tasklist.service
import { TaskDetailsModel } from '../models/task-details.model';
import { Observer, Observable } from 'rxjs/Rx';
let dialogPolyfill: any;
declare let dialogPolyfill: any;
@Component({
selector: 'activiti-checklist',

View File

@@ -21,7 +21,7 @@ import { ActivitiTaskListService } from './../services/activiti-tasklist.service
import { Comment } from '../models/comment.model';
import { Observer, Observable } from 'rxjs/Rx';
let dialogPolyfill: any;
declare let dialogPolyfill: any;
@Component({
selector: 'activiti-comments',

View File

@@ -21,7 +21,7 @@ import { User } from '../models/user.model';
import { Observer, Observable } from 'rxjs/Rx';
import { ActivitiPeopleService } from '../services/activiti-people.service';
let dialogPolyfill: any;
declare let dialogPolyfill: any;
@Component({
selector: 'activiti-people',