Skip to content

Commit 2105794

Browse files
UI: Hide User Card from config.userCard.enabled option (#10545)
Co-authored-by: OlegChuev <[email protected]>
1 parent cbc614d commit 2105794

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ui/public/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"sc": "label.simplified.chinese.keyboard"
6565
},
6666
"userCard": {
67+
"enabled": true,
6768
"title": "label.help",
6869
"icon": "question-circle-outlined",
6970
"links": [

ui/src/views/dashboard/UsageDashboard.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,14 @@
299299
</div>
300300
</chart-card>
301301
</a-col>
302-
<a-col :xs="{ span: 24 }" :lg="{ span: 12 }" :xl="{ span: 8 }" :xxl="{ span: 8 }" class="dashboard-card">
302+
<a-col
303+
v-if="$config.userCard.enabled ?? true"
304+
:xs="{ span: 24 }"
305+
:lg="{ span: 12 }"
306+
:xl="{ span: 8 }"
307+
:xxl="{ span: 8 }"
308+
class="dashboard-card"
309+
>
303310
<chart-card :loading="loading" class="dashboard-card">
304311
<template #title>
305312
<div class="center">

0 commit comments

Comments
 (0)