From 93c728a25a87cf6dae5fc49d42d6af52ff7f7ff2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 13 Jun 2022 10:14:03 +0200 Subject: Replace all glyphicon icons --- client/src/app/shared/shared-forms/input-text.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/src/app/shared/shared-forms/input-text.component.ts') diff --git a/client/src/app/shared/shared-forms/input-text.component.ts b/client/src/app/shared/shared-forms/input-text.component.ts index ed4637c17..d9722e6c6 100644 --- a/client/src/app/shared/shared-forms/input-text.component.ts +++ b/client/src/app/shared/shared-forms/input-text.component.ts @@ -1,6 +1,7 @@ import { Component, forwardRef, Input } from '@angular/core' import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' import { Notifier } from '@app/core' +import { GlobalIconName } from '../shared-icons' @Component({ selector: 'my-input-text', @@ -47,6 +48,12 @@ export class InputTextComponent implements ControlValueAccessor { this.notifier.success($localize`Copied`) } + getEyeIcon (): GlobalIconName { + if (this.show) return 'sensitive' + + return 'unsensitive' + } + propagateChange = (_: any) => { /* empty */ } writeValue (value: string) { -- cgit v1.2.3