فهرست منبع

💄 make dataset name a link

jmacura 4 سال پیش
والد
کامیت
6f8fe84f74
2فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 1 1
      src/adjuster/dataset-list.component.html
  2. 7 3
      src/adjuster/dataset-list.component.ts

+ 1 - 1
src/adjuster/dataset-list.component.html

@@ -20,7 +20,7 @@
       (click)="descriptionVisible = !descriptionVisible"></span-->
     <!--label class="pl-2 cursor-pointer text-secondary"
       (click)="descriptionVisible = !descriptionVisible">{{dataset.name}}</label-->
-      <label class="pl-2 text-secondary">{{dataset.name}}</label>
+      <label><a class="text-info" (click)="showMetadataWindow()">{{dataset.name}}</a></label>
     <!--div class="p-2 mb-2 text-justify text-info" [hidden]="!descriptionVisible">
       {{dataset.desc}}
     </div-->

+ 7 - 3
src/adjuster/dataset-list.component.ts

@@ -1,4 +1,4 @@
-import { Component, Input, OnInit } from '@angular/core';
+import {Component, Input, OnInit} from '@angular/core';
 
 @Component({
   selector: 'pra-dataset-list',
@@ -9,7 +9,11 @@ import { Component, Input, OnInit } from '@angular/core';
 export class DatasetListComponent implements OnInit {
   @Input() factor;
   datasetlistVisible = false;
-  constructor() { }
+  constructor() {}
 
-  ngOnInit() { }
+  ngOnInit() {}
+
+  showMetadataWindow() {
+    //TODO: create window, show data from ontology
+  }
 }