Skip to content

Commit

Permalink
Add isPmmi flag
Browse files Browse the repository at this point in the history
  • Loading branch information
solocommand committed Nov 8, 2019
1 parent b648b24 commit bbafc3d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/app/gql/queries/config.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ query Config {
domain
logo
ids
isPmmi
}
}
14 changes: 12 additions & 2 deletions app/app/routes/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ export default Route.extend(RouteQueryManager, {
model() {
return this.get('apollo').watchQuery({ query, fetchPolicy: 'cache-and-network' }, 'config');
},
afterModel({ domain, logo, ids }) {
this.config.load({ domain, logo, ids });
afterModel({
domain,
logo,
ids,
isPmmi,
}) {
this.config.load({
domain,
logo,
ids,
isPmmi,
});
},
});
1 change: 1 addition & 0 deletions graph/src/definitions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module.exports = gql`
domain: String!
logo: String!
ids: [Int!]!
isPmmi: Boolean!
}
type CompanyUpdateSubmission {
Expand Down
1 change: 1 addition & 0 deletions graph/src/resolvers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const config = {
domain: PLATFORM_URI,
logo: PLATFORM_LOGO,
ids: PLATFORM_SECTIONS,
isPmmi: /^pmmi_/.test(B4GRAPH_TENANT_KEY),
};

module.exports = {
Expand Down

0 comments on commit bbafc3d

Please sign in to comment.