Skip to content

Commit

Permalink
AF-Password|PR Comments| Removed Constants from FormConstants to dire…
Browse files Browse the repository at this point in the history
…ct values on view
  • Loading branch information
kum-sushil authored and dgurjar committed Sep 4, 2024
1 parent 66cd73c commit d5d4481
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.cmp-adaptiveform-password__widget {

}
textarea.cmp-adaptiveform-password__widget{
.cmp-adaptiveform-password__widget{

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@
const widget = this.getWidget();
if(widget.value){
const widget = this.getWidget();
if (widget.type === FormView.Constants.HTML_INPUT_TYPE_PASSWORD) {
widget.type = FormView.Constants.HTML_INPUT_TYPE_TEXT;
if (widget.type === "password") {
widget.type = "text";
} else {
widget.type = FormView.Constants.HTML_INPUT_TYPE_PASSWORD;
widget.type = "password";
}
}
}
Expand Down
12 changes: 0 additions & 12 deletions ui.frontend/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,17 +357,5 @@ export const Constants = {
* @type {string}
*/
API_PATH_PREFIX : "/adobe/forms/af",

/**
* Html input type text
* @type {string}
*/
HTML_INPUT_TYPE_TEXT : "text",

/**
* Html input type password
* @type {string}
*/
HTML_INPUT_TYPE_PASSWORD : "password"
};

0 comments on commit d5d4481

Please sign in to comment.