diff --git a/dashboard/components/drawer/Pricing.vue b/dashboard/components/drawer/Pricing.vue index 6a0540a..ea67e18 100644 --- a/dashboard/components/drawer/Pricing.vue +++ b/dashboard/components/drawer/Pricing.vue @@ -195,6 +195,9 @@ function getPricingsData() {
+
+ *Plan upgrades are applicable exclusively to this project(workspace). +
Do you need help ?
diff --git a/dashboard/components/settings/Codes.vue b/dashboard/components/settings/Codes.vue index 22067fa..95af420 100644 --- a/dashboard/components/settings/Codes.vue +++ b/dashboard/components/settings/Codes.vue @@ -53,6 +53,9 @@ async function redeemCode() {
Redeemed codes: {{ valid_codes.data.value?.count || '0' }}
+
+ *Plan upgrades are applicable exclusively to this project(workspace). +
diff --git a/dashboard/composables/useSelfhosted.ts b/dashboard/composables/useSelfhosted.ts index d40f9ed..8df1f34 100644 --- a/dashboard/composables/useSelfhosted.ts +++ b/dashboard/composables/useSelfhosted.ts @@ -3,5 +3,5 @@ const app = useRuntimeConfig(); export function useSelfhosted() { - return app.public.SELFHOSTED === 'TRUE'; + return app.public.SELFHOSTED === 'TRUE' || app.public.SELFHOSTED !== 'true'; } \ No newline at end of file diff --git a/dashboard/layouts/dashboard.vue b/dashboard/layouts/dashboard.vue index 07b405a..56e172e 100644 --- a/dashboard/layouts/dashboard.vue +++ b/dashboard/layouts/dashboard.vue @@ -32,6 +32,7 @@ const sections: Section[] = [ action() { modal.open(DialogFeedback, {}); }, + disabled: selfhosted }, { label: 'Documentation', to: 'https://docs.litlyx.com', icon: 'fal fa-book', external: true, diff --git a/dashboard/pages/analyst.vue b/dashboard/pages/analyst.vue index 5ed2a02..0700c57 100644 --- a/dashboard/pages/analyst.vue +++ b/dashboard/pages/analyst.vue @@ -4,6 +4,7 @@ import VueMarkdown from 'vue-markdown-render'; definePageMeta({ layout: 'dashboard' }); +const selfhosted = useSelfhosted(); const debugModeAi = ref(false); @@ -87,6 +88,7 @@ async function pollSendMessageStatus(chat_id: string, times: number, updateStatu currentChatMessages.value = messages.map(e => ({ ...e, charts: e.charts.map(k => JSON.parse(k)) })) as any; currentChatMessageDelta.value = ''; + loading.value = false; } } @@ -366,7 +368,8 @@ async function clearAllChats() {
+ class="bg-lyx-lightmode-widget-light dark:bg-lyx-widget-light w-full dark:focus:outline-none px-4 py-2 rounded-lg outline-[1px] outline outline-lyx-lightmode-widget dark:outline-none" + type="text">
@@ -384,7 +387,7 @@ async function clearAllChats() { 'absolute top-0 left-0 w-full': menuOpen, 'hidden xl:flex': !menuOpen }" - class="flex-[2] bg-lyx-lightmode-background border-l-[1px] dark:bg-lyx-background-light p-6 flex flex-col gap-4 h-full overflow-hidden"> + class="flex-[2] bg-lyx-lightmode-background border-l-[1px] dark:border-l-0 dark:bg-lyx-background-light p-6 flex flex-col gap-4 h-full overflow-hidden">
@@ -403,7 +406,7 @@ async function clearAllChats() { chatsRemaining }} remaining requests
- + Upgrade
diff --git a/dashboard/pages/settings.vue b/dashboard/pages/settings.vue index 6fb85cf..fe9a333 100644 --- a/dashboard/pages/settings.vue +++ b/dashboard/pages/settings.vue @@ -2,6 +2,7 @@ definePageMeta({ layout: 'dashboard' }); +const selfhosted = useSelfhosted(); const items = [ { label: 'General', slot: 'general' }, @@ -16,7 +17,7 @@ const items = [