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

fix: tags adding implemented, filters order fixed [WTEL-3222] #591

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/modules/contact-center/modules/queues/api/queues.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ const getQueuesList = async (params) => {

const getQueue = async ({ itemId: id }) => {
const defaultObject = {
tags: [],
type: 0,
formSchema: {},
taskProcessing: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,17 @@
@input="setItemProp({ prop: 'grantee', value: $event })"
/>

<wt-tags-input
:disabled="disableUserInput"
:label="$tc('vocabulary.tag', 2)"
:search-method="loadQueuesTagOptions"
:value="itemInstance.tags"
option-label="name"
taggable
track-by="name"
@input="setItemProp({ prop: 'tags', value: $event })"
/>

<wt-textarea
:disabled="disableUserInput"
:label="$t('objects.description')"
Expand All @@ -138,6 +149,7 @@ import MediaAPI from '../../../../lookups/modules/media/api/media';
import RolesAPI from '../../../../permissions/modules/roles/api/roles';
import FlowsAPI from '../../../../routing/modules/flow/api/flow';
import TeamsAPI from '../../teams/api/teams';
import QueuesAPI from '../api/queues';
import QueueTypeProperties from '../lookups/QueueTypeProperties.lookup';
import { StrategyList } from '../store/_internals/enums/Strategy.enum';

Expand Down Expand Up @@ -193,6 +205,7 @@ export default {
loadDropdownOptionsRoleList(params) {
return RolesAPI.getLookup(params);
},
loadQueuesTagOptions: QueuesAPI.getQueuesTags,
},
};
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:search-method="search"
:track-by="filterSchema.storedProp"
:value="filterSchema.value"
class="flow-tags-filter"
class="queues-tags-filter"
option-label="name"
v-bind="$attrs"
@input="handleInput"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<template>
<wt-filters-panel-wrapper @reset="resetFilters">
<queues-tags-filter
:namespace="namespace"
/>
<component
class="queues-abstract-filter"
:is="`abstract-${filter.type}-filter`"
v-for="(filter) of filters"
:key="filter.filterQuery"
:filter-query="filter.filterQuery"
:namespace="namespace"
/>
<queues-tags-filter
:namespace="namespace"
/>
</wt-filters-panel-wrapper>
</template>

Expand Down Expand Up @@ -55,4 +56,7 @@ export default {
</script>

<style lang="scss" scoped>
.queues-abstract-filter, .queues-tags-filter {
grid-column: span 2;
}
</style>