blob: 44b953101f2eaf854bf247d0de898dd72d078e13 (
plain) (
blame)
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
32
33
34
35
36
37
38
39
40
|
import { Component, Input, OnInit } from '@angular/core';
import Dataset from 'src/app/_data/Dataset';
@Component({
selector: 'app-item-dataset',
templateUrl: './item-dataset.component.html',
styleUrls: ['./item-dataset.component.css']
})
export class ItemDatasetComponent {
@Input() dataset: Dataset = new Dataset();
visibleicon='';
accessibleicon='';
isShowDiv = true;
toggleDisplayDiv() {
this.isShowDiv = !this.isShowDiv;
}
constructor() {
}
ngOnInit(): void {
if(this.dataset.isPublic==true)
{
this.visibleicon='visibility'
}
else
{
this.visibleicon='visibility_off';
}
if(this.dataset.accessibleByLink==true)
{
this.accessibleicon='link'
}
else
{
this.accessibleicon='link_off';
}
}
}
|