mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-11 09:53:32 +03:00
ffe0f84700
closes https://github.com/TryGhost/Ghost/issues/12421 - added `emailOpenRate` property to member model - added open-rate column to the members list - hidden when email analytics is disabled - added `{{feature "flag"}}` helper so feature flags can be checked in templates without injecting the feature service into the backing class - added `order` query param to the members controller/route and wired it into the data fetching routine - added order dropdown to the filter bar with "Newest" (default) and "Open rate" as the two options - whole dropdown is hidden if email analytics is disabled Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
11 lines
274 B
JavaScript
11 lines
274 B
JavaScript
import Helper from '@ember/component/helper';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class EnableDeveloperExperimentsHelper extends Helper {
|
|
@service feature;
|
|
|
|
compute([featureFlag]) {
|
|
return this.feature.get(featureFlag);
|
|
}
|
|
}
|