Skip to content

Commit 4632795

Browse files
committed
UI: Hide User Card from config.userCard.enabled option
1 parent b387bc1 commit 4632795

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
@@ -63,6 +63,7 @@
6363
"sc": "label.simplified.chinese.keyboard"
6464
},
6565
"userCard": {
66+
"enabled": true,
6667
"title": "label.help",
6768
"icon": "question-circle-outlined",
6869
"links": [

ui/src/views/dashboard/UsageDashboard.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,14 @@
287287
</div>
288288
</chart-card>
289289
</a-col>
290-
<a-col :xs="{ span: 24 }" :lg="{ span: 12 }" :xl="{ span: 8 }" :xxl="{ span: 8 }" class="dashboard-card">
290+
<a-col
291+
v-if="$config.userCard.enabled ?? true"
292+
:xs="{ span: 24 }"
293+
:lg="{ span: 12 }"
294+
:xl="{ span: 8 }"
295+
:xxl="{ span: 8 }"
296+
class="dashboard-card"
297+
>
291298
<chart-card :loading="loading" class="dashboard-card">
292299
<template #title>
293300
<div class="center">

0 commit comments

Comments
 (0)