Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix: edit users, edit responsibilities routes to use native js classes
Browse files Browse the repository at this point in the history
  • Loading branch information
MitanOmar committed Apr 12, 2023
1 parent 6d62bd4 commit 5bfba5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/users/edit/index/route.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Route from "@ember/routing/route";

export default Route.extend({});
export default Route;
2 changes: 1 addition & 1 deletion app/users/edit/responsibilities/route.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Route from "@ember/routing/route";

export default Route.extend({});
export default Route;
6 changes: 3 additions & 3 deletions app/users/edit/route.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Route from "@ember/routing/route";

export default Route.extend({
export default class EditUserRoute extends Route {
model({ user_id: id }) {
return this.store.findRecord("user", id, { include: "supervisors" });
},
});
}
}

0 comments on commit 5bfba5e

Please sign in to comment.