Skip to content

Commit

Permalink
fix missing wizard icon on 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredgalanis committed Dec 7, 2022
1 parent 507edf6 commit f90807a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
8 changes: 5 additions & 3 deletions app/components/nav-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ export default class NavBar extends Component {
@task
_setupAppStaticConfig = function* () {
let config = yield this.appStaticConfig.getStaticConfig();
this.aboutUrl = config.branding.pages.aboutUrl;
this.contactUrl = config.branding.pages.contactUrl;
this.faqUrl = config.branding.pages.faqUrl;
if (config.branding.showPagesNavBar) {
this.aboutUrl = config.branding.pages.aboutUrl;
this.contactUrl = config.branding.pages.contactUrl;
this.faqUrl = config.branding.pages.faqUrl;
}
};
}
4 changes: 2 additions & 2 deletions app/controllers/not-found-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { get } from '@ember/object';

export default class NotFoundErrorController extends Controller {
get icon() {
return `${get(this, 'model.config.error.icon')}`;
return `${get(this, 'model.config.branding.error.icon')}`;
}

get contactUrl() {
return `${get(this, 'model.config.pages.contactUrl')}`;
return `${get(this, 'model.config.branding.pages.contactUrl')}`;
}
}
9 changes: 7 additions & 2 deletions public/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
"logo": "ef/eclipse_foundation_logo_wo/EF_WHT-OR_png.png",
"favicon": "favicon.ico",
"stylesheet": "/app/branding.css",
"pages": {},
"error": {}
"pages": {
"showPagesNavBar": false,
"contactUrl": "https://demo.eclipse-pass.org/contact.html"
},
"error": {
"icon": "/app/error-icon.png"
}
}
}

0 comments on commit f90807a

Please sign in to comment.