Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

Add component for removing portfolio items #15

Merged

Conversation

hstastna
Copy link
Contributor

@hstastna hstastna commented Nov 22, 2018

What:
Add the component and another smaller changes (syntax, styling, removing button for editing portfolios from navigation, etc).

Screenshots:
Remove products button for removing portfolio items from the portfolio:
remove_button
Selecting and then removing product from the portfolio:
removing
After removing selected product from the portfolio:
removed

@miq-bot miq-bot added the wip label Nov 22, 2018
@gmcculloug gmcculloug requested a review from lgalis November 26, 2018 13:23
@gmcculloug gmcculloug self-assigned this Nov 26, 2018
@gmcculloug gmcculloug added the enhancement New feature or request label Nov 26, 2018
@lgalis lgalis changed the title [WIP] Add componet for removing portfolio items [WIP] Add component for removing portfolio items Nov 26, 2018
@miq-bot
Copy link
Collaborator

miq-bot commented Nov 26, 2018

This pull request is not mergeable. Please rebase and repush.

@hstastna hstastna force-pushed the Remove_portfolio_items_component branch from 600dcf7 to 2aef684 Compare November 27, 2018 13:56
@hstastna hstastna force-pushed the Remove_portfolio_items_component branch 5 times, most recently from 3cbe34d to 2f28f4c Compare November 30, 2018 14:38
@hstastna hstastna force-pushed the Remove_portfolio_items_component branch 3 times, most recently from d458c07 to 397ca35 Compare December 6, 2018 10:28
@hstastna hstastna force-pushed the Remove_portfolio_items_component branch 5 times, most recently from f7ce79d to 6eba6c5 Compare December 10, 2018 15:54
@hstastna hstastna changed the title [WIP] Add component for removing portfolio items Add component for removing portfolio items Dec 10, 2018
@miq-bot miq-bot removed the wip label Dec 10, 2018
@Fryguy Fryguy closed this Dec 10, 2018
@Fryguy Fryguy reopened this Dec 10, 2018
@miq-bot
Copy link
Collaborator

miq-bot commented Dec 11, 2018

This pull request is not mergeable. Please rebase and repush.

@hstastna hstastna force-pushed the Remove_portfolio_items_component branch from 6eba6c5 to 29050ba Compare December 12, 2018 14:56
@hstastna hstastna force-pushed the Remove_portfolio_items_component branch 9 times, most recently from beaafef to 075877a Compare January 22, 2019 12:38
Add the component also with Cancel, Remove buttons.
@hstastna hstastna force-pushed the Remove_portfolio_items_component branch from 075877a to b874525 Compare January 22, 2019 12:39
@hstastna hstastna force-pushed the Remove_portfolio_items_component branch 5 times, most recently from 4c3a391 to e6e5293 Compare January 22, 2019 12:48
isKebabOpen: false,
isOpen: false,
filteredItems: [],
selectItems: []
Copy link
Contributor

Choose a reason for hiding this comment

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

type: should be probably selectedItems

<PortfolioItem
key={ item.id }
{ ...item }
{ ...{
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for the double object destructing, just assign them as regular props:

 isSelectable={ this.props.location.pathname.includes('/remove-products') }
...

@hstastna hstastna force-pushed the Remove_portfolio_items_component branch from e6e5293 to 20e7a01 Compare January 22, 2019 13:22
@miq-bot
Copy link
Collaborator

miq-bot commented Jan 22, 2019

Checked commits hstastna/service_portal-ui@22827ca~...20e7a01 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🍰

@Hyperkid123 Hyperkid123 merged commit bef6063 into RedHatInsights:master Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants