Browse Source

feat(gui-v2): hide password toggle if password missing

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

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

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

Loading…
Cancel
Save