Skip to content

Commit e8e4961

Browse files
committed
Instance wizard: Add 'deployVirtualMachine' event hook
For UI plugin development, add new event 'cloudStack.deployVirtualMachine' -- This passes the wizard form data and all parameters that will be passed to deployVirtualMachine; allows plugin to extend data to pass additonal data automatically (i.e, custom form fields)
1 parent 182a078 commit e8e4961

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ui/scripts/instanceWizard.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,11 @@
895895
});
896896
}
897897

898+
$(window).trigger('cloudStack.deployVirtualMachine', {
899+
deployVmData: deployVmData,
900+
formData: args.data
901+
});
902+
898903
$.ajax({
899904
url: createURL('deployVirtualMachine'),
900905
data: deployVmData,

0 commit comments

Comments
 (0)