Skip to content

Commit

Permalink
Issue 6429 - UI - clicking on a database suffix under the Monitor tab…
Browse files Browse the repository at this point in the history
… crashes UI

Bug description:
Clicking on a db suffix under the MOnitor tab causes the UI to crash when
the instance is configured with the mdb db engine.

Fix description:
Introduced separate database and suffix monitor classes tailored for mdb. Parent
class detects the configured db engine and calls the appropriate monitor class.

Fixes: #6429

Reviewed by:
  • Loading branch information
jchapma committed Feb 14, 2025
1 parent 699f30e commit 12c7e0a
Show file tree
Hide file tree
Showing 4 changed files with 816 additions and 24 deletions.
2 changes: 0 additions & 2 deletions src/cockpit/389-console/src/lib/database/databaseConfig.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1145,12 +1145,10 @@ export class GlobalDatabaseConfigMDB extends React.Component {
// Check if a setting was changed, if so enable the save button
for (const config_attr of check_attrs) {
if (this.state[config_attr] !== this.state['_' + config_attr]) {
// jc console.log(config_attr);
saveBtnDisabled = false;
break;
}
}
// jc console.log(saveBtnDisabled);
this.setState({
saveBtnDisabled
});
Expand Down
Loading

0 comments on commit 12c7e0a

Please sign in to comment.