mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
12 lines
279 B
JavaScript
12 lines
279 B
JavaScript
|
import Helper from '@ember/component/helper';
|
||
|
import {get} from '@ember/object';
|
||
|
import {inject as service} from '@ember/service';
|
||
|
|
||
|
export default class GetSetting extends Helper {
|
||
|
@service settings;
|
||
|
|
||
|
compute([key = '']) {
|
||
|
return get(this.settings, key);
|
||
|
}
|
||
|
}
|