mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
import { Component } from "@angular/core";
|
|
import { DialogRef, ModalComponent } from "ngx-modialog";
|
|
import { WidgetComponent } from "../widget.component";
|
|
import { ScalarService } from "../../../shared/scalar.service";
|
|
import { ConfigModalContext } from "../../../integration/integration.component";
|
|
import { ToasterService } from "angular2-toaster";
|
|
import { WIDGET_DIM_CUSTOM, WIDGET_SCALAR_CUSTOM } from "../../../shared/models/widget";
|
|
|
|
@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>,
|
|
toaster: ToasterService,
|
|
scalarService: ScalarService,
|
|
window: Window) {
|
|
super(
|
|
toaster,
|
|
scalarService,
|
|
dialog.context.roomId,
|
|
window,
|
|
WIDGET_DIM_CUSTOM,
|
|
WIDGET_SCALAR_CUSTOM,
|
|
dialog.context.integrationId,
|
|
"Custom Widget",
|
|
"generic" // wrapper
|
|
);
|
|
}
|
|
}
|