Browse Source

fix(gui-v2): show correct password on password toggle

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2860/head
Pranav C 2 years ago
parent
commit
cada1df606
  1. 4
      packages/nc-gui-v2/components/smartsheet-toolbar/SharedViewList.vue

4
packages/nc-gui-v2/components/smartsheet-toolbar/SharedViewList.vue

@ -116,9 +116,9 @@ const deleteLink = async (id: string) => {
</a-table-column>
<!-- Password -->
<a-table-column key="password" :title="$t('labels.password')" data-index="title">
<template #default="{ text, record }">
<template #default="{ record }">
<div class="flex align-center items-center gap-1">
<span class="h-min">{{ record.showPassword ? text : '***************************' }}</span>
<span class="h-min">{{ record.showPassword ? record.password : '***************************' }}</span>
<component
:is="record.showPassword ? MdiVisibilityOffIcon : MdiVisibilityOnIcon"
@click="record.showPassword = !record.showPassword"

Loading…
Cancel
Save