Skip to content

fix: adjust gauge input enable/disable logic#819

Merged
brunto merged 1 commit intomasterfrom
fix_questions_gauge
Sep 11, 2025
Merged

fix: adjust gauge input enable/disable logic#819
brunto merged 1 commit intomasterfrom
fix_questions_gauge

Conversation

@brunto
Copy link
Copy Markdown
Collaborator

@brunto brunto commented Sep 11, 2025

This pull request refactors how the "gauge" input is enabled or disabled in the QuestionsComponent. The logic for disabling the input is moved from the template to the TypeScript code, improving maintainability and clarity.

Form control state management:

  • The disabling logic for the gauge input is now handled programmatically in the component's TypeScript file using the isInputDisabled() method, instead of using a complex conditional in the template. (src/app/modules/pia/content/questions/questions.component.ts)
  • The [attr.disabled] binding with a multi-condition expression has been removed from the template, simplifying the HTML and delegating control state to the component logic. (src/app/modules/pia/content/questions/questions.component.html)

@brunto brunto requested a review from kevin-atnos September 11, 2025 13:24
@brunto brunto merged commit ec19c61 into master Sep 11, 2025
2 checks passed
@brunto brunto deleted the fix_questions_gauge branch September 11, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant