chore: 🤖 var names

This commit is contained in:
dharini committed 2023-03-23 10:28:16 +05:30
1 parent fcc156a194
commit b8c38dd0b3
2 files changed
+7 -7

No files matched your search

@@ -13,7 +13,7 @@
@value={{@value}}
@type={{@type}}
name={{@name}}
disabled={{or @disabled (not this.editing)}}
disabled={{or @isDisabled (not this.isEditing)}}
...attributes
as |F|
>
@@ -24,7 +24,7 @@
<Hds::Button
@text={{t 'actions.edit'}}
@icon='edit'
disabled={{@disabled}}
disabled={{@isDisabled}}
/>
{{else if this.isActionable}}
<Hds::Button
@@ -13,14 +13,14 @@ export default class FormFieldSecretInputIndexComponent extends Component {
* Tracks when secret can be updated
* @type {boolean}
*/
@tracked editing = false;
@tracked isEditing = false;
/**
* Returns true if the resource form is in read only mode
* @type {boolean}
*/
get isDisabled() {
return this.args.disabled;
return this.args.isDisabled;
}
/**
@@ -30,7 +30,7 @@ export default class FormFieldSecretInputIndexComponent extends Component {
* @type {boolean}
*/
get isActionable() {
return this.args.showEditButton && !this.editing;
return this.args.showEditButton && !this.isEditing;
}
// =actions
@@ -41,7 +41,7 @@ export default class FormFieldSecretInputIndexComponent extends Component {
*/
@action
enableEdit() {
if (!this.args.disabled) this.editing = true;
if (!this.args.isDisabled) this.isEditing = true;
}
/**
@@ -51,7 +51,7 @@ export default class FormFieldSecretInputIndexComponent extends Component {
*/
@action
cancelEdit() {
this.editing = false;
this.isEditing = false;
this.args.cancel();
}
}