ENH: Simple collection details (#27)
This commit is contained in:
parent
578b8daa32
commit
09a62cf165
14 changed files with 60 additions and 29 deletions
17
app/controllers/collections/index.js
Normal file
17
app/controllers/collections/index.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
const { Controller } = Ember;
|
||||
|
||||
export default Controller.extend({
|
||||
queryParams: ['page'],
|
||||
page: 1,
|
||||
|
||||
actions: {
|
||||
changePage(page) {
|
||||
this.set('page', page);
|
||||
},
|
||||
rowClick(row) {
|
||||
this.transitionToRoute('collections.detail', row.get('id'));
|
||||
},
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue