We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de78373 + 8bf31b4 commit 91794c7Copy full SHA for 91794c7
app/routes/me/index.js
@@ -1,16 +1,6 @@
1
import AuthenticatedRoute from '../-authenticated-route';
2
3
export default AuthenticatedRoute.extend({
4
- actions: {
5
- willTransition: function () {
6
- this.controller
7
- .setProperties({
8
- emailNotificationsSuccess: false,
9
- emailNotificationsError: false,
10
- })
11
- .clear();
12
- },
13
14
async model() {
15
let { ownedCrates, currentUser: user } = this.session;
16
@@ -23,4 +13,13 @@ export default AuthenticatedRoute.extend({
23
24
return { user, ownedCrates, api_tokens: apiTokens };
25
},
+
17
+ setupController(controller) {
18
+ this._super(...arguments);
19
20
+ controller.setProperties({
21
+ emailNotificationsSuccess: false,
22
+ emailNotificationsError: false,
+ });
+ },
26
});
0 commit comments