mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
25 lines
698 B
TypeScript
25 lines
698 B
TypeScript
|
import { Component } from "@angular/core";
|
||
|
import { DialogRef, ModalComponent } from "ngx-modialog";
|
||
|
import { BSModalContext } from "ngx-modialog/plugins/bootstrap";
|
||
|
|
||
|
export class AskUnbridgeDialogContext extends BSModalContext {
|
||
|
}
|
||
|
|
||
|
@Component({
|
||
|
templateUrl: "./ask-unbridge.component.html",
|
||
|
styleUrls: ["./ask-unbridge.component.scss"],
|
||
|
})
|
||
|
export class TelegramAskUnbridgeComponent implements ModalComponent<AskUnbridgeDialogContext> {
|
||
|
|
||
|
constructor(public dialog: DialogRef<AskUnbridgeDialogContext>) {
|
||
|
}
|
||
|
|
||
|
public unbridgeAndContinue(): void {
|
||
|
this.dialog.close({unbridge: true});
|
||
|
}
|
||
|
|
||
|
public cancel(): void {
|
||
|
this.dialog.close({unbridge: false});
|
||
|
}
|
||
|
}
|