Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

fix: disabling options rendering on non-home paths #703

Merged
merged 2 commits into from
Sep 26, 2017

Conversation

davidmsibley
Copy link
Contributor

many thanks to @Doug-Reed for finding the bug and @thevoiceofzeke for helping fix it.


Contributor License Agreement adherence:

$scope.renderMe = false;
if (
$location.url().indexOf(expanded) > -1 ||
$location.url().indexOf(compact) > -1
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a temporary or permanent fix? If permanent, any worries that someday there will be a "Mayflower Compact" app and weirdly the expand/contract widget is going to start showing on its details page? heh.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think "permanent" in the same sense that our current solution to toggling modes is "permanent."

That said, it's probably worth looking for a better long-term solution for toggling expanded/compact modes, which would presumably change this implementation as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, we're just finding all the edges of customization that we made in uw-frame to support angularjs-portal. This is as permanent as we want it to be. This will be temporary as long as we make efforts to transform angularjs-portal into "just another frame app".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually, you're right @apetro, this would break if any entities have expanded or compact in their paths. this should really be a startsWith

@davidmsibley davidmsibley added this to the 6.6.1 milestone Sep 26, 2017
@davidmsibley davidmsibley merged commit 57059e6 into uPortal-Attic:master Sep 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants