Only use necessary icons

This commit is contained in:
Djuri 2024-09-03 01:18:20 +02:00
parent ad9e35a268
commit 1dd3a7f834
4 changed files with 35 additions and 8 deletions

View file

@ -14,13 +14,14 @@
Col,
Form,
FormText,
Icon,
Input,
InputGroup,
InputGroupText,
Label,
Row
} from 'sveltestrap';
import EyeIcon from '../icons/EyeIcon.svelte';
import EyeSlashIcon from '../icons/EyeSlashIcon.svelte';
export let settings;
@ -504,7 +505,8 @@
type="button"
on:click={() => (showPassword = !showPassword)}
color={showPassword ? 'success' : 'danger'}
><Icon name={showPassword ? 'eye-slash' : 'eye'}></Icon></Button
>{#if !showPassword}<EyeIcon></EyeIcon>{:else}<EyeSlashIcon
></EyeSlashIcon>{/if}</Button
>
</InputGroup>
<FormText>{$_('section.settings.httpAuthText')}</FormText>