Skip to content

PERS-61 [Fix] ensured to open "menu options > menu links" when clicked on "bottom icon bar" menu styles #51

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
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

anshuljain4
Copy link

Product areas affected

also in API & Studio
Menu Manger Widget > interface.js

What does this PR do?

Assessing payload from Studio to open Menu Links if applicable

JIRA ticket

PERS-61

Result

PERS-61-.Google.Chrome.2022-05-09.13-35-53.720p.mp4

Checklist

None

Deployment instructions

None

Author concerns

None

Reviewer

@tonytlwu & @squallstar

js/interface.js Outdated
@@ -1,3 +1,4 @@
let saveButtonLabel = '';
Copy link
Contributor

Choose a reason for hiding this comment

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

File doesn't look in line with ESLint standards.

Copy link
Author

Choose a reason for hiding this comment

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

made update to incorporate ESlint standards

js/interface.js Outdated
@@ -804,11 +805,17 @@
attachObservers();
// Load menu widgets on startup
loadCustomMenuWidgets();

// to open menu links
if (JSON.parse(Fliplet.Navigate.query.data).links === 'true') {
Copy link
Contributor

Choose a reason for hiding this comment

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

You should be able to use if (Fliplet.Widget.getData().links). The data returned from Fliplet.Widget.getData() contains data passed through the data query parameter. See https://developers.fliplet.com/API/core/widget.html#get-a-widget-instance-data

Copy link
Author

Choose a reason for hiding this comment

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

used Fliplet.Widget.getData().links in if statement to assess payload data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants