Commit 7a2ee090 authored by Ziwen Su's avatar Ziwen Su

Added another requirement for Jobtag.

parent 85829881
......@@ -131,6 +131,9 @@
<p-overlayPanel #jobtags [showCloseIcon]="true">
<div class="p-grid p-dir-col">
<div class="p-col">
Select jobs that contain <p-dropdown [options]="jobtag_option" [(ngModel)]="selected_jobtag_option" [style]="{'minWidth':'65px','width':'65px'}"></p-dropdown> of the following tags:
</div>
<div class="p-col">
<p-checkbox name="jobtag1" label="memory-bound" [(ngModel)]="jobtag_bool[0]" binary="true" (onChange)="checkJobtags()"></p-checkbox>
</div>
......
......@@ -131,6 +131,8 @@ export class SearchComponent implements OnInit {
jobtag_bool: boolean[];
jobtag_sum: number;
selected_jobtags: string;
jobtag_option: SelectItem[];
selected_jobtag_option: string;
footprints: string[];
footprint_name: string;
......@@ -183,6 +185,10 @@ export class SearchComponent implements OnInit {
];
this.partitions = this.monitoringservice.getPartitions();
this.jobtag_option = [];
this.jobtag_option.push({label: 'All', value: 'and'});
this.jobtag_option.push({label: 'Any', value: 'or'});
this.footprints = [];
for (let label in convert_footprint_dict) {
this.footprints.push(label);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment