Files
Tsering Paljorandpeter_baserow 98acd64960 feat: Dashboard sharing (#6408)
* Add backend changes: models, handler, etc.

* Add frontend share dashboard modal

* Add public dashboard endpoint

* Add frontend public dashboard view

* Add public dashboard auth

* Show the logo in the password page based on license

* Add abuse reporting and fix license check

* Fix tests

* fix tests

* Fix aggregation in public dashboard

* Fix styling on sharing options

* Ensure anonymous dashboard views only return the data it needs

* DRY public access token logic

* Add changelog

* Added UpdateDashboardSharingActionType to ensure audit log accurately records changes.

* Add e2e tests

* Remove old todo; creation-time check is sufficient

* Re-add request serializer field overrides

* fix test

* Ensure that the password protection modal can be persisted with an Enter keypress.

---------

Co-authored-by: peter_baserow <peter@baserow.io>
2026-10-22 09:07:48 +04:00

52 lines
1.2 KiB
Vue

<template>
<div class="header__filter">
<li class="header__filter-item">
<a v-if="canEdit" class="header__filter-link" @click="toggleEditMode">
<i class="header__filter-icon iconoir-edit"></i>
<span class="header__filter-name">{{
$t('dashboardHeaderMenuItems.editMode')
}}</span>
</a>
</li>
<li v-if="canEdit" class="header__filter-item">
<ShareDashboardLink :dashboard="dashboard" />
</li>
</div>
</template>
<script>
import ShareDashboardLink from '@baserow/modules/dashboard/components/sharing/ShareDashboardLink'
export default {
name: 'DashboardHeaderMenuItems',
components: { ShareDashboardLink },
props: {
dashboard: {
type: Object,
required: true,
},
storePrefix: {
type: String,
required: false,
default: '',
},
},
computed: {
canEdit() {
return this.$hasPermission(
'application.update',
this.dashboard,
this.dashboard.workspace.id
)
},
},
methods: {
toggleEditMode() {
this.$store.dispatch(
this.storePrefix + `dashboardApplication/toggleEditMode`
)
},
},
}
</script>