0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Added developer experiments indication to about page

no issue

- without this there's no indication the config flag is set when you have no access to the config file or you don't know which features are currently behind the flag
This commit is contained in:
Kevin Ansfield 2020-10-09 11:38:47 +01:00
parent 235d5f1b8b
commit a3d3632e97
2 changed files with 6 additions and 3 deletions

View file

@ -1,10 +1,10 @@
import Helper from '@ember/component/helper';
import {inject as service} from '@ember/service';
export default Helper.extend({
config: service(),
export default class EnableDeveloperExperimentsHelper extends Helper {
@service config;
compute() {
return this.config.get('enableDeveloperExperiments');
}
});
}

View file

@ -9,6 +9,9 @@
<li><strong>Environment</strong> {{this.config.environment}}</li>
<li class="gh-env-list-database-type"><strong>Database</strong> {{this.config.database}}</li>
<li><strong>Mail</strong> {{#if this.config.mail}}{{this.config.mail}}{{else}}Native{{/if}}</li>
{{#if (enable-developer-experiments)}}
<li><strong>Developer experiments</strong> Enabled</li>
{{/if}}
</ul>
<div class="gh-env-help">
<a class="gh-btn" href="https://ghost.org/docs/" target="_blank"><span>User Documentation</span></a>