UI: Hide User Card from config.userCard.enabled option (#10545)

Co-authored-by: OlegChuev <o.chuev@mobidev.biz>
This commit is contained in:
Oleg Chuev 👋 2025-08-29 12:30:25 +03:00 committed by GitHub
parent cbc614d8e3
commit 2105794f61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -64,6 +64,7 @@
"sc": "label.simplified.chinese.keyboard"
},
"userCard": {
"enabled": true,
"title": "label.help",
"icon": "question-circle-outlined",
"links": [

View File

@ -299,7 +299,14 @@
</div>
</chart-card>
</a-col>
<a-col :xs="{ span: 24 }" :lg="{ span: 12 }" :xl="{ span: 8 }" :xxl="{ span: 8 }" class="dashboard-card">
<a-col
v-if="$config.userCard.enabled ?? true"
:xs="{ span: 24 }"
:lg="{ span: 12 }"
:xl="{ span: 8 }"
:xxl="{ span: 8 }"
class="dashboard-card"
>
<chart-card :loading="loading" class="dashboard-card">
<template #title>
<div class="center">