Fixed fullwidth bug for members screen

- Added condition to make the members screen full width when filters Alpha feature is applied
This commit is contained in:
Peter Zimon 2021-08-12 17:53:49 +02:00
parent 6651b44de9
commit c71e5f19bf
4 changed files with 15 additions and 5 deletions

View File

@ -51,7 +51,7 @@
/>
<button
type="button"
class="gh-btn gh-btn-text gh-btn-link green gh-btn-icon gh-add-filter"
class="gh-btn gh-btn-text gh-btn-link gh-btn-icon gh-add-filter"
title="Delete filter"
{{!-- {{on "click" (fn this.deleteFilter filter.id)}} --}}
{{action "deleteFilter" filter.id}}

View File

@ -3,6 +3,7 @@ import {inject as service} from '@ember/service';
export default class MembersRoute extends AuthenticatedRoute {
@service store;
@service feature;
queryParams = {
label: {refreshModel: true},
@ -33,8 +34,16 @@ export default class MembersRoute extends AuthenticatedRoute {
}
buildRouteInfoMetadata() {
return {
titleToken: 'Members'
};
if (this.feature.membersFiltering) {
return {
titleToken: 'Members',
mainClasses: ['gh-main-fullwidth']
};
} else {
return {
titleToken: 'Members'
};
}
}
}

View File

@ -311,6 +311,7 @@ ul.nostyle li {
position: relative;
border-collapse: inherit;
margin: 0;
border-bottom: none;
}
.gh-list-scrolling thead th {

View File

@ -8,7 +8,7 @@
<GhNavMenu />
{{/if}}
<main class="gh-main {{this.ui.mainClass}} {{if (and (feature "membersFiltering") (or (eq this.router.currentURL "/members") (eq this.router.currentURL "/members/import"))) "gh-main-fullwidth"}}" role="main">
<main class="gh-main {{this.ui.mainClass}}" role="main">
{{outlet}}
{{#if this.showBilling}}