File tree Expand file tree Collapse file tree 6 files changed +22
-17
lines changed
controllers/crate/settings Expand file tree Collapse file tree 6 files changed +22
-17
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Router.map(function () {
19
19
this . route ( 'reverse-dependencies' , { path : 'reverse_dependencies' } ) ;
20
20
21
21
this . route ( 'owners' ) ;
22
- this . route ( 'settings' ) ;
22
+ this . route ( 'settings' , function ( ) { } ) ;
23
23
this . route ( 'delete' ) ;
24
24
25
25
// Well-known routes
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import AuthenticatedRoute from '../-authenticated-route';
5
5
export default class SettingsRoute extends AuthenticatedRoute {
6
6
@service router ;
7
7
@service session ;
8
- @service store ;
9
8
10
9
async beforeModel ( transition ) {
11
10
await super . beforeModel ( ...arguments ) ;
@@ -20,19 +19,4 @@ export default class SettingsRoute extends AuthenticatedRoute {
20
19
} ) ;
21
20
}
22
21
}
23
-
24
- async model ( ) {
25
- let crate = this . modelFor ( 'crate' ) ;
26
-
27
- let githubConfigs = await this . store . query ( 'trustpub-github-config' , { crate : crate . name } ) ;
28
-
29
- return { crate, githubConfigs } ;
30
- }
31
-
32
- setupController ( controller , { crate, githubConfigs } ) {
33
- super . setupController ( ...arguments ) ;
34
-
35
- controller . set ( 'crate' , crate ) ;
36
- controller . set ( 'githubConfigs' , githubConfigs ) ;
37
- }
38
22
}
Original file line number Diff line number Diff line change
1
+ import Route from '@ember/routing/route' ;
2
+ import { service } from '@ember/service' ;
3
+
4
+ export default class SettingsIndexRoute extends Route {
5
+ @service store ;
6
+
7
+ async model ( ) {
8
+ let crate = this . modelFor ( 'crate' ) ;
9
+
10
+ let githubConfigs = await this . store . query ( 'trustpub-github-config' , { crate : crate . name } ) ;
11
+
12
+ return { crate, githubConfigs } ;
13
+ }
14
+
15
+ setupController ( controller , { crate, githubConfigs } ) {
16
+ super . setupController ( ...arguments ) ;
17
+
18
+ controller . set ( 'crate' , crate ) ;
19
+ controller . set ( 'githubConfigs' , githubConfigs ) ;
20
+ }
21
+ }
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments