Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added react-ui-components to dependencies.
- Loading branch information
1 parent
d3e6dd3
commit fc6bc00
Showing
4 changed files
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import React from 'react'; | ||
import VmSnapshotFormComponent from '../components/vm-snapshot-form-component'; | ||
|
||
/** | ||
* Add component definitions to this file. | ||
* example of component definition: | ||
* ManageIQ.component.addReact('ComponentName', props => <ComponentName {...props} />); | ||
*/ | ||
import VmSnapshotFormComponent from '../components/vm-snapshot-form-component'; | ||
|
||
ManageIQ.component.define('VmSnapshotForm', ManageIQ.component.reactBlueprint(props => ( | ||
<VmSnapshotFormComponent {...props} /> | ||
))); | ||
ManageIQ.component.addReact('VmSnapshotForm', props => <VmSnapshotFormComponent {...props} />); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
= render :partial => "layouts/flash_msg" | ||
#snap-form{"data-create-url" => url_for_only_path(:action => "snap_vm", :id => @record.id, :button => @edit ? "create" : nil), | ||
"data-cancel-url" => url_for_only_path(:action => "snap_vm", :id => @record.id, :button => @edit ? "cancel" : nil), | ||
"data-name-required" => !!@record.try(:snapshot_name_optional?)} | ||
"data-name-optional" => @record.try(:snapshot_name_optional?)} | ||
:javascript | ||
ManageIQ.component.componentFactory('VmSnapshotForm', 'snap-form'); | ||
ManageIQ.component.componentFactory('VmSnapshotForm', '#snap-form'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters