Skip to content
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

Merged
merged 1 commit into from Aug 2, 2017

Conversation

skateman
Copy link
Member

@skateman skateman commented Aug 2, 2017

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

screenshot from 2017-08-02 08-37-10

screenshot from 2017-08-02 08-37-34

@epwinchell @himdel @karelhala

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"]');
Copy link
Contributor

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?

Copy link
Member Author

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';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COTN

@miq-bot
Copy link
Member

miq-bot commented Aug 2, 2017

Checked commit skateman@501f7e2 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@himdel
Copy link
Contributor

himdel commented Aug 2, 2017

Tested in the UI, looks good 👍
The hack .. is a hack, but hopefully only temporary :)

@himdel himdel merged commit 432c5f3 into ManageIQ:master Aug 2, 2017
@himdel himdel self-assigned this Aug 2, 2017
@himdel himdel added this to the Sprint 66 Ending Aug 7, 2017 milestone Aug 2, 2017
@skateman skateman deleted the fonticon-picker branch August 21, 2017 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants