mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 08:09:24 +00:00
feat: dashboard tutorial button (#2920)
 Co-authored-by: Prabhat Sharma <hi.prabhat@gmail.com>
This commit is contained in:
co-authored by
Prabhat Sharma
parent
0a8c313629
commit
bdcb20de6b
@@ -34,6 +34,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex q-gutter-sm">
|
||||
<q-btn
|
||||
outline
|
||||
padding="sm"
|
||||
class="q-mr-sm"
|
||||
no-caps
|
||||
label="Dashboard Tutorial"
|
||||
@click="showTutorial"
|
||||
data-test="dashboard-panel-tutorial-btn"
|
||||
></q-btn>
|
||||
<q-btn
|
||||
v-if="!['html', 'markdown'].includes(dashboardPanelData.data.type)"
|
||||
outline
|
||||
@@ -369,6 +378,11 @@ export default defineComponent({
|
||||
metaData.value = metadata;
|
||||
};
|
||||
|
||||
//dashboard tutorial link on click
|
||||
const showTutorial = () => {
|
||||
window.open("https://short.openobserve.ai/dashboard-tutorial");
|
||||
};
|
||||
|
||||
const variablesDataUpdated = (data: any) => {
|
||||
Object.assign(variablesData, data);
|
||||
};
|
||||
@@ -1258,6 +1272,7 @@ export default defineComponent({
|
||||
metaData,
|
||||
panelTitle,
|
||||
onDataZoom,
|
||||
showTutorial,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user