Skip to content

Commit

Permalink
fix monitored button
Browse files Browse the repository at this point in the history
  • Loading branch information
MaKyOtOx committed Jan 12, 2022
1 parent 29b19ac commit 3e5792d
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions frontend/src/components/pages/Vulns.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
<v-row>
<v-col class="pa-2" md="auto" >
Vulnerabilities<br/>
<!-- </v-col>
<v-col class="pa-2"> -->
<v-chip
small label outlined :color="getBoolColor(this.show_all)"
@click="toggleShowAll()">All</v-chip>&nbsp;
Expand All @@ -17,7 +15,10 @@
@click="toggleShowLastDay()">Last 24h</v-chip>&nbsp;
<v-chip
small label outlined :color="getBoolColor(this.show_last_week)"
@click="toggleShowLastWeek()">Last Week</v-chip>
@click="toggleShowLastWeek()">Last Week</v-chip>&nbsp;
<v-chip
small label outlined :color="this.show_monitored?'deep-orange':'grey'"
@click="toggleMonitored()">Monitored</v-chip>
</v-col>
<v-col class="pa-2" md="4">
<v-text-field
Expand All @@ -29,9 +30,7 @@
hide-details
></v-text-field>
</v-col>
</v-row>
<v-row>
<v-col class="pa-2" md="4">
<v-col class="pa-2" md="3">
<v-slider
v-model="search_slider_min"
label="Min Score"
Expand All @@ -54,14 +53,6 @@
hide-details
></v-slider>
</v-col>
<v-col class="pa-2" md="4">
<v-switch
v-model="show_monitored"
label="Monitored"
color="deep-orange"
>
</v-switch>
</v-col>
</v-row>
<v-row v-if="showAdvancedFilters">
<v-col cols="12">
Expand Down Expand Up @@ -418,6 +409,9 @@ export default {
this.show_last_day = false;
}
},
toggleMonitored() {
this.show_monitored = !this.show_monitored;
},
showManageMetadataButtons(){
let p = JSON.parse(this.getUserProfile());
if (p != null && 'manage_metadata' in p){
Expand Down

0 comments on commit 3e5792d

Please sign in to comment.