forked from cockpit-project/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
networkmanager: Handle cancelling of superuser changes
Opening the superuser dialog (necessarily) already initiates the sudo (or similar) process, changes `superuser.allowed` to `null`, and thus triggers all kinds of reinitialization. However, `model` becomes invalid (`model.ready == false`) after cancelling the dialog, so that the page is stuck in the empty state. Fix that by reinitializing the model after superuser changes. Fixes the first part of cockpit-project#19655 (this applies to more pages)
- Loading branch information
1 parent
36c4411
commit e90ffe6
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters