[ADF-1748] remove MDL dependency and fix style issues (#2486)

* remove dialogPolyfill references

* remove MDL dependencies

* style fixes

* exclude the test (needs dialog support)
This commit is contained in:
Denys Vuika
2017-10-17 17:20:06 +01:00
committed by Eugenio Romano
parent 073003ba9a
commit 0cc578ba0e
12 changed files with 30 additions and 103 deletions

View File

@@ -25,8 +25,6 @@ import { FormFieldModel } from '../core/form-field.model';
import { FormService } from './../../../services/form.service';
import { baseHost , WidgetComponent } from './../widget.component';
declare let dialogPolyfill: any;
@Component({
selector: 'attach-widget',
templateUrl: './attach.widget.html',
@@ -130,11 +128,7 @@ export class AttachWidgetComponent extends WidgetComponent implements OnInit {
this.getExternalContentNodes();
if (this.dialog) {
if (!this.dialog.nativeElement.showModal) {
dialogPolyfill.registerDialog(this.dialog.nativeElement);
}
this.dialog.nativeElement.showModal();
// todo: show dialog
return true;
}
return false;