blob: ee06198d1687c199918efc3c86d1adc537659c4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import { Component, Input, OnChanges, TemplateRef, ViewChild } from '@angular/core';
import { NgbNav } from '@ng-bootstrap/ng-bootstrap';
import { RbdFormModel } from '../rbd-form/rbd-form.model';
@Component({
selector: 'cd-rbd-details',
templateUrl: './rbd-details.component.html',
styleUrls: ['./rbd-details.component.scss']
})
export class RbdDetailsComponent implements OnChanges {
@Input()
selection: RbdFormModel;
@Input()
images: any;
@ViewChild('poolConfigurationSourceTpl', { static: true })
poolConfigurationSourceTpl: TemplateRef<any>;
@ViewChild(NgbNav, { static: true })
nav: NgbNav;
rbdDashboardUrl: string;
ngOnChanges() {
if (this.selection) {
this.rbdDashboardUrl = `rbd-details?var-Pool=${this.selection['pool_name']}&var-Image=${this.selection['name']}`;
}
}
}
|