Minor fix for application lock button labelling

This commit is contained in:
Dean 2022-05-12 10:28:32 +01:00
parent 51952ee0f4
commit 21a3b66347
1 changed files with 4 additions and 7 deletions

View File

@ -20,11 +20,11 @@
$: lockedBy = app?.lockedBy $: lockedBy = app?.lockedBy
$: lockedByYou = $auth.user.email === lockedBy?.email $: lockedByYou = $auth.user.email === lockedBy?.email
$: lockIdentifer = `${ $: lockIdentifer = `${
lockedBy && Object.prototype.hasOwnProperty.call(lockedBy, "firstName") lockedBy && lockedBy.firstName ? lockedBy?.firstName : lockedBy?.email
? lockedBy?.firstName
: lockedBy?.email
}` }`
$: lockedByHeading = $: lockedByHeading =
lockedBy && lockedByYou ? "Locked by you" : `Locked by ${lockIdentifer}` lockedBy && lockedByYou ? "Locked by you" : `Locked by ${lockIdentifer}`
@ -141,9 +141,6 @@
.lock-status { .lock-status {
display: flex; display: flex;
gap: var(--spacing-s); gap: var(--spacing-s);
max-width: 175px;
} }
/* .lock-status :global(.spectrum-Button-label) {
font-weight: 200;
font-family: var(--font-sans);
} */
</style> </style>