2019-02-22 06:17:33 +03:00
|
|
|
import PostsRoute from './posts';
|
2022-08-22 15:32:36 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
2019-02-22 06:17:33 +03:00
|
|
|
|
2022-01-17 12:34:55 +03:00
|
|
|
export default class PagesRoute extends PostsRoute {
|
2022-08-22 14:03:23 +03:00
|
|
|
@service feature;
|
|
|
|
|
2022-01-17 12:34:55 +03:00
|
|
|
modelName = 'page';
|
2019-05-20 18:16:19 +03:00
|
|
|
|
|
|
|
buildRouteInfoMetadata() {
|
|
|
|
return {
|
2022-08-22 14:03:23 +03:00
|
|
|
titleToken: 'Pages',
|
|
|
|
mainClasses: this.feature.get('memberAttribution') ? ['gh-main-fullwidth'] : null
|
2019-05-20 18:16:19 +03:00
|
|
|
};
|
|
|
|
}
|
2022-01-17 12:34:55 +03:00
|
|
|
}
|