-
Notifications
You must be signed in to change notification settings - Fork 150
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
make the emergency shutoff button unclickeable when disabled #3028
make the emergency shutoff button unclickeable when disabled #3028
Conversation
agent/run.sh
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@allan-silva, I have only changed ui/src/views/Rules/ListRules/index.jsx file, but somehow this files have been added too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I create another PR with a different branch name for this issue?, seems like this could be resolved if I only stages the index.js file to git so that the files wouldn't get pushed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that's the easiest way for you to get a clean PR, please go ahead. It is also possible to revert the changes from your current branch.
@gabrielBusta @bhearsum Can you take a look at my solution to this issue please? |
@bhearsum Can you give suggestions on this failing test? It seems related to the commit hash. |
It looks like it was an intermittent issue - a rebuild fixed it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @MelakuAlehegn.
The changes you're seeing are changes to the file permissions in the Git repository.
100755
means the file is executable.
100644
means the file is not executable.
To restore the files you could run this command on each of the files with the modified permissions:
git restore --source=2181f9233850bcefd42a25b862d0f9a5c8083225 --staged --worktree <filename>
This approach will restore the file's state (including its permissions) to 2181f92 (which is the commit your changes are based on), and you can then commit the change as you usually would.
(balrog) ➜ balrog git:(emergency-shutoff-button) ✗ git restore --source=2181f9233850bcefd42a25b862d0f9a5c8083225 --staged --worktree maintenance/pin.sh
(balrog) ➜ balrog git:(emergency-shutoff-button) ✗ git status -v
On branch emergency-shutoff-button
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: maintenance/pin.sh
diff --git a/maintenance/pin.sh b/maintenance/pin.sh
old mode 100644
new mode 100755
@gabrielBusta I have changed the file permissions back. |
Thanks @MelakuAlehegn, I see the issue has been resolved on a lot of the files. I still see permission changes on these files that should be reverted:
|
@gabrielBusta I have reverted the permission changes for all files on this commit. Please take a look. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made tests on MelakuAlehegn:emergency-shutoff-button
, LGTM.
Thanks!
Thanks @allan-silva , |
Looks great :) Thanks @MelakuAlehegn |
This PR is for a fix for #2610
Here I have selected a product: Fennect: beta
Enabled button: Clickable at first
Disabling updates
Disabled and button unclickable