Skip to content

Commit

Permalink
Remove all tags tree
Browse files Browse the repository at this point in the history
  • Loading branch information
PanSpagetka committed Jul 31, 2019
1 parent c4113aa commit d3c7e1b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
1 change: 0 additions & 1 deletion app/controllers/vm_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,6 @@ def replace_right_cell(options = {})
locals[:submit_button] = @sb[:action] != 'miq_request_new' # need submit button on the screen
locals[:continue_button] = @sb[:action] == 'miq_request_new' # need continue button on the screen
update_buttons(locals) if @edit && @edit[:buttons].present?
presenter[:clear_tree_cookies] = "all_tags_tree"
end

if ['snapshot_add'].include?(@sb[:action])
Expand Down
8 changes: 4 additions & 4 deletions app/javascript/components/taggingWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,18 @@ TaggingWrapper.propTypes = {
}),
tags: PropTypes.shape({
tags: PropTypes.arrayOf(PropTypes.shape({
id: PropTypes.oneOfType(PropTypes.string, PropTypes.number).isRequired,
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
description: PropTypes.string.isRequired,
values: PropTypes.arrayOf(PropTypes.shape({
id: PropTypes.oneOfType(PropTypes.string, PropTypes.number).isRequired,
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
description: PropTypes.string.isRequired,
}).isRequired).isRequired,
})).isRequired,
assignedTags: PropTypes.arrayOf(PropTypes.shape({
id: PropTypes.oneOfType(PropTypes.string, PropTypes.number).isRequired,
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
description: PropTypes.string.isRequired,
values: PropTypes.arrayOf(PropTypes.shape({
id: PropTypes.oneOfType(PropTypes.string, PropTypes.number).isRequired,
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
description: PropTypes.string.isRequired,
}).isRequired).isRequired,
})).isRequired,
Expand Down
2 changes: 0 additions & 2 deletions app/views/miq_request/_prov_edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@
- unless @edit[:explorer]
= render :partial => 'miq_request/prov_form_buttons'
= _("Note: Fields marked with * are required.")
:javascript
miqDeleteTreeCookies('all_tags_tree')
7 changes: 0 additions & 7 deletions app/views/miq_request/_prov_field.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,6 @@
- elsif [:tag_ids, :vm_tags].include?(field)
-# tree control for tags fields
.col-md-10
#all_tags_treebox.treeview-pf-hover.treeview-pf-select{:style => "color:#000; overflow: hidden;"}
- if @edit && @edit[:req_id]
- check = @edit[:req_id]
- elsif @miq_request
- check = @miq_request.id
- else
- check = 'new'
= react('TaggingWrapperConnected',
:tags => @tags,
:options => { :type => 'provision', :hideHeaders => true, :hideButtons => true, :url => url_for_only_path(:action => 'prov_field_changed')})
Expand Down

0 comments on commit d3c7e1b

Please sign in to comment.