Skip to content

Commit

Permalink
Merge pull request #223 from hotwax/222_permission_page
Browse files Browse the repository at this point in the history
Fixed: Displayed bottom line in the 'only selected permissions' and 'filters' section. Also displayed permissions count for each category. (#222)
  • Loading branch information
ravilodhi authored Apr 22, 2024
2 parents d7ca823 + 7807593 commit cbcc406
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/PermissionItems.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template>
<div class="search-permissions">
<ion-searchbar :placeholder="translate('Search permissions')" v-model="query.queryString" @ionInput="updateQuery()" />
<ion-item lines="none">
<ion-item lines="full">
<ion-icon :icon="shieldCheckmarkOutline" slot="start" />
<ion-toggle v-model="query.showSelected" @ionChange="updateQuery()">
{{ translate("Only selected permissions") }}
</ion-toggle>
</ion-item>
<ion-item lines="none">
<ion-item lines="full">
<ion-icon :icon="optionsOutline" slot="start" />
<ion-select :label="translate('Filters')" interface="popover" v-model="query.classificationSecurityGroupId" @ionChange="updateQuery()">
<ion-select-option value="">{{ translate("All") }}</ion-select-option>
Expand All @@ -24,6 +24,7 @@
<ion-label>
{{ group.groupName || group.groupId }}
</ion-label>
<ion-note slot="end">{{ group.permissions.length }}</ion-note>
</ion-item-divider>

<section v-if="group.groupId !== 'SGC_HIDDEN'">
Expand Down Expand Up @@ -57,6 +58,7 @@ import {
IonItem,
IonItemDivider,
IonLabel,
IonNote,
IonSearchbar,
IonSelect,
IonSelectOption,
Expand Down Expand Up @@ -85,6 +87,7 @@ export default defineComponent({
IonItem,
IonItemDivider,
IonLabel,
IonNote,
IonSearchbar,
IonSelect,
IonSelectOption,
Expand Down

0 comments on commit cbcc406

Please sign in to comment.