Skip to content

Commit

Permalink
fix: Improve tooltip descriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Dec 19, 2024
1 parent 4d61e34 commit c00fbf0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ export const getInfoLabel = (node: Node): string => {

if (state.lockOwnerType === LockType.User) {
return state.isLocked
? t('files_lock', 'Locked by {user}', { user: state.lockOwnerDisplayName })
? t('files_lock', 'Manually locked by {user}', { user: state.lockOwnerDisplayName })
: ''

} else if (state.lockOwnerType === LockType.App) {
return state.isLocked
? t('files_lock', 'Locked by {app}', { app: state.lockOwnerDisplayName })
? t('files_lock', 'Locked by editing online in {app}', { app: state.lockOwnerDisplayName })
: ''
} else {
return state.isLocked
? t('files_lock', 'Locked by {user}', { user: state.lockOwnerDisplayName })
? t('files_lock', 'Automatically locked by {user}', { user: state.lockOwnerDisplayName })
: ''
}

Expand Down

0 comments on commit c00fbf0

Please sign in to comment.