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:
parent
427218b1f4
commit
7447793e77
@ -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,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user