From d81e76b58f426c4dfd47cad540ee15a1d3694ad3 Mon Sep 17 00:00:00 2001
From: signalprime <15487280+signalprime@users.noreply.github.com>
Date: Sat, 15 Jul 2023 07:39:53 -0500
Subject: [PATCH] Update DiscussionsView.vue for Import Dropdown
Convert the existing import button into a dropdown menu with both "LOLLMS" and "ChatGPT" options:
1. Replace the button with a `
` that will become the dropdown trigger. Add a click listener to toggle the menu open/closed:
```html
```
2. Add `toggleDropdown` method and `isOpen` data property:
```js
data() {
return {
isOpen: false
}
},
methods: {
toggleDropdown() {
this.isOpen = !this.isOpen;
}
}
```
3. Add the actual dropdown menu markup that shows conditionally based on `isOpen`:
```html