1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00

Server: Hide "Is Admin" from dashboard

This commit is contained in:
Laurent Cozic 2021-07-03 16:10:15 +01:00
parent 427218b1f4
commit 7447793e77
2 changed files with 15 additions and 8 deletions

View File

@ -22,22 +22,27 @@ router.get('home', async (_path: SubPath, ctx: AppContext) => {
{
label: 'Account Type',
value: accountTypeToString(accountProps.account_type),
show: true,
},
{
label: 'Is Admin',
value: yesOrNo(ctx.joplin.owner.is_admin),
show: !!ctx.joplin.owner.is_admin,
},
{
label: 'Max Item Size',
value: formatMaxItemSize(ctx.joplin.owner),
show: true,
},
{
label: 'Can Share Note',
value: yesOrNo(true),
show: true,
},
{
label: 'Can Share Notebook',
value: yesOrNo(accountProps.can_share_folder),
show: true,
},
],
};

View File

@ -4,14 +4,16 @@
<table class="table is-hoverable">
<tbody>
{{#userProps}}
<tr>
<td>
<strong>{{label}}</strong>
</td>
<td>
{{value}}
</td>
</tr>
{{#show}}
<tr>
<td>
<strong>{{label}}</strong>
</td>
<td>
{{value}}
</td>
</tr>
{{/show}}
{{/userProps}}
</tbody>
</table>