Skip to content

Commit 2ba77af

Browse files
committed
refact: Show empty blueprint info only in debug
1 parent b7a86a2 commit 2ba77af

6 files changed

Lines changed: 22 additions & 6 deletions

File tree

panel/src/components/Sections/Sections.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<k-box
3-
v-if="tab.columns.length === 0"
3+
v-if="tab.columns.length === 0 && empty"
44
:html="true"
55
:text="empty"
66
theme="info"

panel/src/components/Views/Files/FileView.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@
4343
<k-sections
4444
:blueprint="blueprint"
4545
:content="content"
46-
:empty="$t('file.blueprint', { blueprint: $esc(blueprint) })"
46+
:empty="
47+
$panel.config.debug
48+
? $t('file.blueprint', { blueprint: $esc(blueprint) })
49+
: null
50+
"
4751
:lock="lock"
4852
:parent="api"
4953
:tab="tab"

panel/src/components/Views/Pages/PageView.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
<k-sections
3737
:blueprint="blueprint"
3838
:content="content"
39-
:empty="$t('page.blueprint', { blueprint: $esc(blueprint) })"
39+
:empty="
40+
$panel.config.debug
41+
? $t('page.blueprint', { blueprint: $esc(blueprint) })
42+
: null
43+
"
4044
:lock="lock"
4145
:parent="api"
4246
:tab="tab"

panel/src/components/Views/Pages/SiteView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<k-sections
4141
:blueprint="blueprint"
4242
:content="content"
43-
:empty="$t('site.blueprint')"
43+
:empty="$panel.config.debug ? $t('site.blueprint') : null"
4444
:lock="lock"
4545
:tab="tab"
4646
parent="site"

panel/src/components/Views/Preview/PreviewForm.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
<k-sections
2525
:blueprint="blueprint"
2626
:content="content"
27-
:empty="$t('page.blueprint', { blueprint: $esc(blueprint) })"
27+
:empty="
28+
$panel.config.debug
29+
? $t('page.blueprint', { blueprint: $esc(blueprint) })
30+
: null
31+
"
2832
:lock="lock"
2933
:parent="api"
3034
:tab="tab"

panel/src/components/Views/Users/UserView.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@
5757
<k-sections
5858
:blueprint="blueprint"
5959
:content="content"
60-
:empty="$t('user.blueprint', { blueprint: $esc(blueprint) })"
60+
:empty="
61+
$panel.config.debug
62+
? $t('user.blueprint', { blueprint: $esc(blueprint) })
63+
: null
64+
"
6165
:lock="lock"
6266
:parent="api"
6367
:tab="tab"

0 commit comments

Comments
 (0)