Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Disable role invite processing in fastboot mode #4038

Merged
merged 2 commits into from
Feb 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion app/routes/public/role-invites.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default Route.extend({
redirectionParams: null,
fastboot : service(),
redirectionParams : null,
async beforeModel(transition) {
// We don't want to process or transition in fastboot mode
// Since this is only an intermediate page
if (this.fastboot.isFastBoot) {return}
const { token } = transition.to.queryParams;
const originalEventId = transition.resolvedModels.public.originalId;
const payload = {
Expand Down Expand Up @@ -31,6 +36,7 @@ export default Route.extend({

},
afterModel() {
if (this.fastboot.isFastBoot) {return}
this.transitionTo('register', this.redirectionParams);
}
});