Skip to content
Snippets Groups Projects
Verified Commit 386a56a4 authored by Martin Weise's avatar Martin Weise
Browse files

Updated the settings warning

parent 5d1f80db
No related branches found
No related tags found
2 merge requests!395Library,!394Grafana
This commit is part of merge request !394. Comments created here will be created in the context of that merge request.
No preview for this file type
......@@ -602,7 +602,8 @@
"text": "View",
"visibility": {
"label": "Managed Dashboard",
"hint": "Required, enables/disables the managed dashboard"
"hint": "Required, enables/disables the managed dashboard",
"warn": "Note that disabling the dashboard management also disables automatic visibility permission management of the dashboard!"
}
},
"creation": {
......
......@@ -165,6 +165,17 @@
:hint="$t('pages.database.resource.schema.hint', { resource: 'database', schema: 'tables, views, subsets' })" />
</v-col>
</v-row>
<v-row
v-if="isDashboardDisabled">
<v-col
lg="8">
<v-alert
border="start"
color="warning">
{{ $t('pages.database.dashboard.visibility.warn') }}
</v-alert>
</v-col>
</v-row>
<v-row
dense>
<v-col
......@@ -438,6 +449,12 @@ export default {
maxHeight () {
return this.$config.public.database.image.height
},
isDashboardDisabled () {
if (!this.database) {
return false
}
return this.database.is_dashboard_enabled && !this.modifyVisibility.is_dashboard_enabled
},
uploadErrorMessages () {
if (!this.file || this.file.size < 1_000_000) {
return []
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment