+
+ *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() {