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

Open profile items in a modal window #1083

Conversation

zarkosimic
Copy link
Contributor

  • Adds the possibility to open profile items in a modal window.

Steps to reproduce:
Go to core/examples/luigi-sample-angular/src/luigi-config/extended/navigation.js find settings node and replace with this one { pathSegment: 'settings', hideFromNav: true, hideSideNav: true, label: 'Settings', viewUrl: '/sampleapp.html#/settings' }.
In the same file, find getProfileItems and in items array add this node { label: "Settings", icon: "action-settings", link: "/settings", openNodeInModal: { title: "Settings M", size: "m" } }.

Before changes:

image

After changes:

image

@zarkosimic zarkosimic added the enhancement New feature or request label Feb 4, 2020
@zarkosimic zarkosimic added this to the Sprint 9 milestone Feb 4, 2020
@JohannesDoberer JohannesDoberer self-assigned this Feb 4, 2020
typeof item.openNodeInModal === 'object' &&
item.openNodeInModal !== null
) {
const route = RoutingHelpers.buildRoute(item, `/${item.link}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

route is in my case //settings. I would remove the slash.

Copy link
Contributor

@JohannesDoberer JohannesDoberer left a comment

Choose a reason for hiding this comment

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

👍 LGTM!

@marynaKhromova marynaKhromova self-assigned this Feb 6, 2020
Copy link
Contributor

@marynaKhromova marynaKhromova left a comment

Choose a reason for hiding this comment

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

looks good to me 👍

@zarkosimic zarkosimic merged commit 626e6fb into SAP:master Feb 13, 2020
@zarkosimic zarkosimic deleted the 1078_profile_items_should_be_able_to_open_in_modal_window branch February 13, 2020 09:38
JohannesDoberer added a commit that referenced this pull request Feb 17, 2020
* master:
  remove tech writers and add alex to default users (#1104)
  update sample app (#1106)
  Update README.md
  release-v0.7.5 (#1102)
  Svelte example app (#1070)
  update fiddle (#1100)
  Open profile items in a modal window (#1083)

# Conflicts:
#	test/e2e-test-application/package-lock.json
JohannesDoberer added a commit that referenced this pull request Feb 17, 2020
* master:
  remove tech writers and add alex to default users (#1104)
  update sample app (#1106)
  Update README.md
  release-v0.7.5 (#1102)
  Svelte example app (#1070)
  update fiddle (#1100)
  Open profile items in a modal window (#1083)

# Conflicts:
#	.travis.yml
#	test/e2e-test-application/package-lock.json
#	test/e2e-test-application/package.json
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants