mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
eb2109499a
refs https://github.com/TryGhost/Team/issues/1277 - added `/members-activity` route with associated controller, template, and components behind labs flag - table component currently renders some dummy rows - added navigation item to main menu - will use the currently set `?filter` query param unless clicked whilst already on the `/members-activity` screen in which case it will reset the query - added link to dashboard members activity panel - added link to member details activity panel - sets the filter param to `?filter=member:{member.id}` in preparation for the feed to be filtered to the member's activity - updated the labs-flag test helper file to export both `enableLabsFlag()` and the new `disableLabsFlag()` so it's easier to test for flag-disabled functionality
15 lines
363 B
JavaScript
15 lines
363 B
JavaScript
import AdminRoute from 'ghost-admin/routes/admin';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class MembersActivityRoute extends AdminRoute {
|
|
@service feature;
|
|
|
|
beforeModel() {
|
|
super.beforeModel(...arguments);
|
|
|
|
if (!this.feature.membersActivityFeed) {
|
|
return this.transitionTo('home');
|
|
}
|
|
}
|
|
}
|