Skip to content

Commit

Permalink
storage: Prevent user setting a negative size in partition dialogue
Browse files Browse the repository at this point in the history
Related: #3920
Closes #3925

Signed-off-by: mulhern <amulhern@redhat.com>
Reviewed-by: Stef Walter <stefw@redhat.com>
  • Loading branch information
mulkieran authored and stefwalter committed Mar 7, 2016
1 parent ad0c77b commit 4a2cc16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storaged/details.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ define([
validate: function (size) {
if (isNaN(size))
return _("Size must be specified.");
if (size === 0)
return _("Size can not be zero.");
if (size <= 0)
return _("Size must be greater than zero.");
}
},
{ SelectOne: "erase",
Expand Down

0 comments on commit 4a2cc16

Please sign in to comment.