Skip to content

Commit 384e702

Browse files
committed
[dbviewer] Remove assistant drawer
1 parent 0fce1b4 commit 384e702

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

plugins/dbviewer/frontend/public/javascripts/countly.views.js

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*global countlyGlobal, store, hljs, countlyDBviewer, app, countlyCommon, CV, countlyVue, CountlyHelpers, _, countlyAuth, countlyPlugins*/
1+
/*global countlyGlobal, store, hljs, countlyDBviewer, app, countlyCommon, CV, countlyVue, CountlyHelpers, _, countlyAuth*/
22

33
(function() {
44

@@ -394,13 +394,7 @@
394394

395395
var DBViewerMain = countlyVue.views.create({
396396
template: CV.T("/dbviewer/templates/main.html"),
397-
mixins: [
398-
countlyVue.container.dataMixin({assistantPromptDrawer: 'ai-assistants/prompt-drawer'}),
399-
countlyVue.mixins.hasDrawers("ai-assistant-prompt"),
400-
],
401397
data: function() {
402-
var aiAssistantConfig = countlyPlugins.getConfigsData()['ai-assistants'];
403-
404398
return {
405399
dynamicTab: (this.$route.params && this.$route.params.db) || "countly",
406400
db: (this.$route.params && this.$route.params.db) || null,
@@ -409,17 +403,9 @@
409403
apps: [],
410404
collections: {},
411405
index: (this.$route.params && this.$route.params.index) || null,
412-
assistantPromptDrawerSettings: {
413-
assistant_id: aiAssistantConfig ? aiAssistantConfig.assistantId_queryBuilder : '',
414-
buildEndpoint: '/ai-assistants/build-query',
415-
title: CV.i18n('cohorts.assistant.title'),
416-
},
417406
};
418407
},
419408
methods: {
420-
onAssistantClick: function() {
421-
this.openDrawer('ai-assistant-prompt', {});
422-
},
423409
prepareTabs: function(dbs) {
424410
for (var i = 0; i < dbs.length; i++) {
425411
this.tabs.push({

plugins/dbviewer/frontend/public/templates/main.html

-7
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
<cly-header
33
:title="i18n('dbviewer.title')"
44
>
5-
<template v-slot:header-right>
6-
<div class="bu-level-item">
7-
<el-button @click="onAssistantClick" v-if="assistantPromptDrawer && assistantPromptDrawer.length > 0" type="success" size="small">AI Assistant</el-button>
8-
</div>
9-
</template>
105
<template v-slot:header-tabs>
116
<cly-dynamic-tabs
127
v-model="dynamicTab"
@@ -24,6 +19,4 @@
2419
</cly-dynamic-tabs>
2520
</template>
2621
</cly-header>
27-
<component v-if="assistantPromptDrawer && assistantPromptDrawer.length > 0" :is="assistantPromptDrawer[0].component" :settings="assistantPromptDrawerSettings" :controls="drawers['ai-assistant-prompt']">
28-
</component>
2922
</div>

0 commit comments

Comments
 (0)