Skip to content

Conversation

joaomariolago
Copy link
Collaborator

@joaomariolago joaomariolago commented Jun 26, 2024

Closes #2751

  • Add new conditionals for dev mode
  • Add new way to enter dev mode in App
  • Remove cloud integration unless in dev mode

* Add is dev mode setters and getters with new conditionals
* Add enter dev mode on 10 clicks in build date
* Remove cloud unless in dev mode
@joaomariolago joaomariolago marked this pull request as ready for review June 27, 2024 13:45
Comment on lines +738 to +741
this.build_clicks = (this.build_clicks + 1) % 10
if (this.build_clicks === 0) {
settings.is_dev_mode = true
}
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason for not doing something simpler ?

Suggested change
this.build_clicks = (this.build_clicks + 1) % 10
if (this.build_clicks === 0) {
settings.is_dev_mode = true
}
this.build_clicks += 1
settings.is_dev_mode = this.build_clicks > 10

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just to keep consistent that if the user activate and deactivate the dev mode without refreshing it still will require 10 clicks and not only one in the second activation.

Copy link
Member

Choose a reason for hiding this comment

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

I see, thanks!

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.

core: frontend: Disable cloud features when user is not on dev mode
2 participants