Skip to content

Commit

Permalink
Revert encryption value when Cancel button is pressed (#9922)
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Vasilenko <[email protected]>
  • Loading branch information
bvasilenko and Boris Vasilenko authored Apr 4, 2024
1 parent c74b08b commit b2e8afe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,8 @@ export class DatasetFormComponent implements Formconfiguration {
this.entityForm.setDisabled(all_encryption_fields[i], true, true);
}
}
} else {
encryption_fg.setValue(!encryption);
}
});
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ export class ZvolFormComponent implements Formconfiguration {
this.entityForm.setDisabled(all_encryption_fields[i], true, true);
}
}
} else {
encryption_fg.setValue(!encryption);
}
});
} else {
Expand Down

0 comments on commit b2e8afe

Please sign in to comment.