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 ``` 4. Implement the `importChatGPT` method: ```js methods: { importChatGPT() { // handle ChatGPT import } } ``` --- web/src/views/DiscussionsView.vue | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/web/src/views/DiscussionsView.vue b/web/src/views/DiscussionsView.vue index 29cba877..84657f36 100644 --- a/web/src/views/DiscussionsView.vue +++ b/web/src/views/DiscussionsView.vue @@ -51,10 +51,17 @@ - +
+ +
+
+ +
+ +