Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NCD-660: Disable write button on click, enable on write finished #29

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

cybic
Copy link
Contributor

@cybic cybic commented Jan 29, 2024

This feature will tell users that we are writing the configuration to the DK, by greying the "Write config"-button on click. After the write is finished, we "re-enable" the button, indicating that the write is finished. (In addition to logging "Configuration written")

@cybic cybic added the doc required This PR includes user-facing changes that need to be documented. label Jan 29, 2024
@cybic cybic requested a review from aadnekar January 29, 2024 13:01
@cybic cybic force-pushed the NCD-660_feedback_on_write_config branch from 19f233b to ce51941 Compare January 31, 2024 09:11
@cybic cybic requested a review from boundlesscalm January 31, 2024 09:12
@cybic cybic force-pushed the NCD-660_feedback_on_write_config branch from ce51941 to 54c2eab Compare January 31, 2024 09:15
@@ -21,22 +21,32 @@ import { getConfigArray } from './features/Configuration/boardControllerConfigSl
export default () => {
logger.debug('Rendering SidePanel');

const [isWriting, setWriting] = useState<boolean>(false);
Copy link
Contributor

@boundlesscalm boundlesscalm Jan 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: ‏‏Pretty sure typescript will infer the type here so no need to add it explicitly.

@cybic cybic force-pushed the NCD-660_feedback_on_write_config branch from 54c2eab to c991721 Compare January 31, 2024 09:20
@cybic cybic merged commit 88a9cb4 into main Jan 31, 2024
2 checks passed
@cybic cybic deleted the NCD-660_feedback_on_write_config branch January 31, 2024 09:22
@greg-fer
Copy link
Contributor

greg-fer commented Feb 7, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc required This PR includes user-facing changes that need to be documented.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants