-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introducing embedded_workflow to dynamic select box in service dialogs #471
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
77 changes: 51 additions & 26 deletions
77
src/dialog-editor/components/tree-selector/tree-selector.html
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,28 +1,53 @@ | ||
<div class="pull-right"> | ||
<button type="button" class="close" ng-click="$ctrl.treeOptions.toggle()" aria-hidden="true"> | ||
<span class="pficon pficon-close"></span> | ||
</button> | ||
</div> | ||
|
||
<div ng-if="!$ctrl.treeOptions.data" class="spinner spinner-lg"></div> | ||
<div ng-if="$ctrl.treeOptions.data"> | ||
<miq-tree-selector | ||
name="tree-selector" | ||
data="$ctrl.treeOptions.data" | ||
selectable="{key: '^aei-'}" | ||
on-select="$ctrl.treeOptions.onSelect(node)" | ||
lazy-load="$ctrl.treeOptions.lazyLoad(node)" | ||
selected="$ctrl.treeOptions.selected" | ||
></miq-tree-selector> | ||
</div> | ||
|
||
<div class="col-sm-4"> | ||
<div class="form-group pull-right"> | ||
<label class="control-label" translate>Include domain prefix in the path:</label> | ||
<input bs-switch | ||
type="checkbox" | ||
ng-model="$ctrl.treeOptions.includeDomain" | ||
switch-on-text="{{'Yes'|translate}}" | ||
switch-off-text="{{'No'|translate}}"/> | ||
<div class="tree_selector_wrapper"> | ||
<div class="tree_selector_title_wrapper"> | ||
<div class="tree_selector_dialog_title"> | ||
<span ng-if="$ctrl.treeOptions.automationType==$ctrl.treeOptions.automationTypes.automate"> | ||
Select Embededded Automate | ||
</span> | ||
<span ng-if="$ctrl.treeOptions.automationType==$ctrl.treeOptions.automationTypes.workflow"> | ||
Select Embededded Workflow | ||
</span> | ||
</div> | ||
<div class="tree_selector_action"> | ||
<div class="pull-right"> | ||
<button type="button" class="close" ng-click="$ctrl.treeOptions.toggle()" aria-hidden="true"> | ||
<span class="pficon pficon-close"></span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="tree_selector_content_wrapper"> | ||
<div ng-if="!$ctrl.treeOptions.data" class="spinner spinner-lg"></div> | ||
<div ng-if="$ctrl.treeOptions.automationType==$ctrl.treeOptions.automationTypes.automate"> | ||
<div ng-if="$ctrl.treeOptions.data"> | ||
<miq-tree-selector | ||
name="tree-selector" | ||
data="$ctrl.treeOptions.data" | ||
selectable="{key: '^aei-'}" | ||
on-select="$ctrl.treeOptions.onSelect(node)" | ||
lazy-load="$ctrl.treeOptions.lazyLoad(node)" | ||
selected="$ctrl.treeOptions.selected" | ||
></miq-tree-selector> | ||
</div> | ||
<div class="col-sm-4"> | ||
<div class="form-group pull-right"> | ||
<label class="control-label" translate>Include domain prefix in the path:</label> | ||
<input bs-switch | ||
type="checkbox" | ||
ng-model="$ctrl.treeOptions.includeDomain" | ||
switch-on-text="{{'Yes'|translate}}" | ||
switch-off-text="{{'No'|translate}}"/> | ||
</div> | ||
</div> | ||
</div> | ||
<div ng-if="$ctrl.treeOptions.automationType==$ctrl.treeOptions.automationTypes.workflow"> | ||
<div ng-if="$ctrl.treeOptions.data"> | ||
<ul class="nav nav-list workflows_list_wrapper" ng-repeat="workflow in $ctrl.treeOptions.data"> | ||
<li class="workflow_item" ng-click="$ctrl.treeOptions.onSelect(workflow)"> | ||
{{workflow.name}} | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably should only show this if the prototype flag is enabled. This can be found via API.