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

Add an option to bypass the local storage #1882

Merged
merged 1 commit into from Oct 4, 2016

Conversation

fredj
Copy link
Member

@fredj fredj commented Sep 21, 2016

Add a new options to gmfx.PermalinkOptions to deactivate to storage into the local storage.
The desktop_alt now uses this option.

Copy link
Member

@sbrunner sbrunner 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 :-)

@@ -146,6 +146,10 @@ gmf.Permalink = function($timeout, ngeoBackgroundLayerMgr, ngeoDebounce,
*/
this.ngeoStateManager_ = ngeoStateManager;

if (gmfPermalinkOptions.useLocalStorage === false) {
this.ngeoStateManager_.localStorage = null;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe use the hash { 'isAvailable': function() {return false;}}?

Copy link
Member Author

Choose a reason for hiding this comment

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

Or even this.ngeoStateManager_.localStorage.isAvailable = ol.functions.FALSE; ?

Copy link
Member Author

Choose a reason for hiding this comment

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

ping @gberaudo

Copy link
Member

@gberaudo gberaudo Sep 29, 2016

Choose a reason for hiding this comment

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

Yes any way is +1. Thanks for asking.

@sbrunner sbrunner changed the title [wip] Add an option to bypass the local storage [Work in progress] Add an option to bypass the local storage Sep 29, 2016
@fredj fredj changed the title [Work in progress] Add an option to bypass the local storage Add an option to bypass the local storage Oct 3, 2016
Add a new options to gmfx.PermalinkOptions to deactivate to storage into the local storage.
The desktop_alt now uses this option.
@fredj fredj merged commit 14ed9fa into camptocamp:master Oct 4, 2016
@fredj fredj deleted the localstorage_off branch October 4, 2016 06:32
@sbrunner sbrunner added this to the Older milestone Aug 23, 2019
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.

None yet

3 participants