Skip to content

Commit

Permalink
add valueErr when used port is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
jchapma committed Jan 9, 2025
1 parent 8de3747 commit 68ed7a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cockpit/389-console/src/lib/server/settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ async validateSaveBtn(nav_tab, attr, value) {
const portInUse = await is_port_in_use(portValue);
if (portInUse) {
disableSaveBtn = true;
if (portValue !== Number(this.state['_' + attr])) {
valueErr = true;
}
}
} catch (error) {
console.error("Error checking port:", error);
Expand Down

0 comments on commit 68ed7a4

Please sign in to comment.