Skip to content

Commit

Permalink
chore: improve sftp password tooltip
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 0da1247 commit 1f85422
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/frontend/src/pages/servers/manage/[id]/options/info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<span
class="font-bold text-contrast hover:cursor-pointer"
:class="{ blur: !showPassword }"
@click="togglePassword"
>
{{ data?.sftp_password }}
</span>
Expand All @@ -41,7 +40,10 @@
</button>
</ButtonStyled>
<ButtonStyled type="transparent">
<button v-tooltip="'Show/hide SFTP password'" @click="togglePassword">
<button
v-tooltip="showPassword ? 'Hide password' : 'Show password'"
@click="togglePassword"
>
<EyeIcon v-if="showPassword" class="h-5 w-5 hover:cursor-pointer" />
<EyeOffIcon v-else class="h-5 w-5 hover:cursor-pointer" />
</button>
Expand Down

0 comments on commit 1f85422

Please sign in to comment.