Skip to content
Snippets Groups Projects
Commit 294d5ec0 authored by Dheeraj Joshi's avatar Dheeraj Joshi
Browse files

Update placeholder for password field

parent 705d3334
No related branches found
No related tags found
No related merge requests found
<script>
import { GlFormGroup, GlFormInput, GlFormCheckbox } from '@gitlab/ui';
import { initFormField } from 'ee/security_configuration/utils';
import { __ } from '~/locale';
import validation from '~/vue_shared/directives/validation';
 
export default {
Loading
Loading
@@ -60,8 +59,8 @@ export default {
showValidationOrInEditMode() {
return this.showValidation || this.isEditMode;
},
sensitiveFieldPlaceholder() {
return this.isEditMode ? __('[Unchanged]') : '';
passwordFieldPlaceholder() {
return this.isEditMode ? '••••••••' : '';
},
},
watch: {
Loading
Loading
@@ -126,7 +125,7 @@ export default {
autocomplete="off"
name="password"
type="password"
:placeholder="sensitiveFieldPlaceholder"
:placeholder="passwordFieldPlaceholder"
:required="isSensitiveFieldRequired"
:state="form.fields.password.state"
/>
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment