Skip to content

Commit

Permalink
bz 1509244: Don't require form changes in order to submit backup restore
Browse files Browse the repository at this point in the history
https://bugzilla.redhat.com/show_bug.cgi?id=1509244

The 'save' button in the backup restore form wasn't active until
the user first selected a different volume. To restore to the
current volume required changing to a different volume and then
re-selecting the original. This commit removes the requirement
to change the form first before submitting. Such a requirement
makes sense for an edit form (no changes, no need to submit),
but it does not make sense for an action form like this.
  • Loading branch information
sseago committed May 10, 2018
1 parent 23c8f7b commit 34bddd8
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -12,7 +12,9 @@ ManageIQ.angular.app.controller('cloudVolumeBackupFormController', ['miqService'
vm.model = "cloudVolumeBackupModel";

ManageIQ.angular.scope = vm;
vm.saveable = miqService.saveable;
vm.saveable = function(form) {
return form.$valid;
};

vm.newRecord = false;

Expand Down

0 comments on commit 34bddd8

Please sign in to comment.