forked from btclock/webui
Only use necessary icons
This commit is contained in:
parent
ad9e35a268
commit
1dd3a7f834
4 changed files with 35 additions and 8 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue