Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trib 263 #100

Merged
merged 13 commits into from
May 8, 2024
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {Component, OnInit} from "@angular/core";
import {ActivatedRoute} from "@angular/router";
import { Router} from "@angular/router";
import { ConnectModelService } from '../_services/connect.model.service';
import { AlertService } from "src/app/_services/alert/alert.service";

@Component({
selector: 'app-connection-details',
Expand All @@ -15,6 +16,7 @@ export class ConnectionDetailsPage implements OnInit{
constructor(
private route: ActivatedRoute,
private connectModelService: ConnectModelService,
private _alertService: AlertService,
private _router: Router) {}

ngOnInit() {}
Expand All @@ -29,8 +31,24 @@ export class ConnectionDetailsPage implements OnInit{
// self.navigateTo('/list-connections');
// }
// }


onRemoveBtnClick() {
haxwell marked this conversation as resolved.
Show resolved Hide resolved
let self = this;
this._alertService.show({
header: 'Wait!',
message: "Do you really want to remove this connection?",
buttons: [{
text: "Oops, no..",
role: 'cancel'
}, {
text: 'Yes!'
}]
})

onRemoveBtnClick() {
console.log("Remove clicked!")

}

navigateTo(url?: string) {
Expand Down
Loading