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

Hide settings/apps unless apps:true is in config.js #3041

Merged
merged 1 commit into from
Jun 23, 2014

Conversation

ErisDS
Copy link
Member

@ErisDS ErisDS commented Jun 23, 2014

fixes #3031

  • Adds an initializer for passing config to the frontend, it's not pretty but it works
  • Forwards the apps route and hides the apps menu item if apps:true is not present in config.js

@ErisDS
Copy link
Member Author

ErisDS commented Jun 23, 2014

This is my first proper ember pr, feedback plz!

@darvelo
Copy link
Contributor

darvelo commented Jun 23, 2014

👏 Bravo!

I'm not certain how window.ENV works so that application.get('config') is populated. It seems window.ENV.config now has an ember meta property attached. Dunno if that's an issue, but yeah, this is great!

@@ -1,6 +1,11 @@
import AuthenticatedRoute from 'ghost/routes/authenticated';

var AppsRoute = AuthenticatedRoute.extend({
beforeModel: function () {
if (!this.controllerFor('settings').get('showApps')) {

This comment was marked as abuse.

fixes TryGhost#3031

- Adds an initializer for passing config to the frontend, it's not pretty but it works
- Forwards the apps route and hides the apps menu item if apps:true is not present in config.js
@ErisDS
Copy link
Member Author

ErisDS commented Jun 23, 2014

Thanks 👍 Updated :)

@jgable
Copy link
Contributor

jgable commented Jun 23, 2014

Looks good to me 👍

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.

[Ember.js] Settings/Apps pane should only be available if set in config.js
3 participants