Skip to content

Commit

Permalink
feat: change bots menu tags to single selection
Browse files Browse the repository at this point in the history
  • Loading branch information
sunner committed Aug 30, 2023
1 parent a857408 commit 11c8db0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Footer/BotsMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
divided
color="primary"
group
multiple
variant="outlined"
rounded="xl"
@update:model-value="filterBots($event)"
Expand Down Expand Up @@ -115,6 +114,11 @@ function toggleMenu() {
function filterBots(selectedTags) {
let filteredIn = notDisabledBots;
// If the toggle is not multi-select, the selectedTags will be a string
if (typeof selectedTags === "string") {
selectedTags = [selectedTags];
}
if (selectedTags.length) {
const tagBots = selectedTags.map((tag) => botTags[tag]);
filteredIn = filteredIn.filter((bot) => {
Expand Down

1 comment on commit 11c8db0

@vercel
Copy link

@vercel vercel bot commented on 11c8db0 Aug 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

chatall – ./

chatall-git-main-sunner.vercel.app
chatall-sunner.vercel.app
chatall-llm.vercel.app

Please sign in to comment.