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

SDPA-5530: Replaced rplchecklist with rplselect for tide_search_form. #1076

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
11 changes: 9 additions & 2 deletions packages/ripple-nuxt-tide/modules/search/lib/formData.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
export default {
getFormData: async (setFilterOptions) => {
const searchTopicValues = await setFilterOptions({
let searchTopicValues = await setFilterOptions({
fieldName: 'field_topic_name'
})

// Format options as per the rplselect.
searchTopicValues = searchTopicValues.map(topic => {
return { 'id': topic, 'name': topic }
})

return {
title: 'Search results',
searchPlaceholder: 'Start typing...',
Expand All @@ -16,11 +22,12 @@ export default {
schema: {
fields: [
{
type: 'rplchecklist',
type: 'rplselect',
label: 'Select a topic',
model: 'field_topic_name',
values: searchTopicValues,
placeholder: 'Select a topic',
multiselect: true,
filter: {
type: 'term',
operator: ''
Expand Down