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:
parent
235d5f1b8b
commit
a3d3632e97
2 changed files with 6 additions and 3 deletions
|
@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue