Skip to content

Commit

Permalink
chore: improve sftp password display
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Song <[email protected]>
  • Loading branch information
ferothefox committed Oct 17, 2024
1 parent 1f85422 commit 40c65b2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/frontend/src/pages/servers/manage/[id]/options/info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@
class="flex w-full flex-col justify-center gap-2 rounded-xl bg-table-alternateRow p-4"
>
<div class="flex items-center justify-between">
<span
class="font-bold text-contrast hover:cursor-pointer"
:class="{ blur: !showPassword }"
>
{{ data?.sftp_password }}
<span class="font-bold text-contrast">
{{
showPassword ? data?.sftp_password : "*".repeat(data?.sftp_password?.length ?? 0)
}}
</span>

<div class="flex flex-row items-center gap-1">
Expand Down

0 comments on commit 40c65b2

Please sign in to comment.