2017-08-29 00:08:32 -04:00
|
|
|
import { Component } from "@angular/core";
|
2017-12-09 18:34:59 -05:00
|
|
|
import { DialogRef, ModalComponent } from "ngx-modialog";
|
2017-10-10 22:44:09 -04:00
|
|
|
import { WidgetComponent } from "../widget.component";
|
2017-08-29 00:08:32 -04:00
|
|
|
import { ScalarService } from "../../../shared/scalar.service";
|
|
|
|
import { ConfigModalContext } from "../../../integration/integration.component";
|
|
|
|
import { ToasterService } from "angular2-toaster";
|
2017-10-10 22:44:09 -04:00
|
|
|
import { WIDGET_DIM_CUSTOM, WIDGET_SCALAR_CUSTOM } from "../../../shared/models/widget";
|
2017-08-29 00:08:32 -04:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: "my-customwidget-config",
|
|
|
|
templateUrl: "custom_widget-config.component.html",
|
|
|
|
styleUrls: ["custom_widget-config.component.scss", "./../../config.component.scss"],
|
|
|
|
})
|
|
|
|
export class CustomWidgetConfigComponent extends WidgetComponent implements ModalComponent<ConfigModalContext> {
|
|
|
|
|
|
|
|
constructor(public dialog: DialogRef<ConfigModalContext>,
|
2017-10-10 22:44:09 -04:00
|
|
|
toaster: ToasterService,
|
2017-10-09 22:26:46 -04:00
|
|
|
scalarService: ScalarService,
|
|
|
|
window: Window) {
|
2017-10-10 22:44:09 -04:00
|
|
|
super(
|
|
|
|
toaster,
|
|
|
|
scalarService,
|
|
|
|
dialog.context.roomId,
|
|
|
|
window,
|
|
|
|
WIDGET_DIM_CUSTOM,
|
|
|
|
WIDGET_SCALAR_CUSTOM,
|
2017-12-11 17:39:15 -05:00
|
|
|
dialog.context.integration,
|
2017-10-10 22:44:09 -04:00
|
|
|
dialog.context.integrationId,
|
|
|
|
"Custom Widget",
|
|
|
|
"generic" // wrapper
|
|
|
|
);
|
2017-08-29 00:08:32 -04:00
|
|
|
}
|
|
|
|
}
|