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
Use the fonticon picker component to pick custom button icons #1801
Conversation
var vm = this; | ||
// This is an ugly hack to be able to use this component in a non-angular context with miq-observe | ||
// FIXME: Remove this when the form is converted to angular | ||
var hidden = $($element[0]).find('input[type="hidden"]'); |
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.
$element.find
should work too?
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.
I made this code the ugliest as possible on purpose so no one will forget to remove it when converting the form to Angular.
@@ -0,0 +1,18 @@ | |||
/* global add_flash */ | |||
(function() { | |||
var COTNROLLER_NAME = 'fonticonPickerController'; |
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.
COTN
b8f5f77
to
246f1eb
Compare
246f1eb
to
501f7e2
Compare
Checked commit skateman@501f7e2 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Tested in the UI, looks good 👍 |
The way I included the angular component in the non-angular form is an ugly hack and should not be used as an example. After the form is converted to angular, it should be removed.
Depends on: ManageIQ/ui-components#105
Pivotal story: https://www.pivotaltracker.com/story/show/147779325
@epwinchell @himdel @karelhala