Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: Displayed bottom line in the 'only selected permissions' and 'filters' section. Also displayed permissions count for each category. (#222) #223

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading