17 lines
307 B
JavaScript
17 lines
307 B
JavaScript
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'));
|
|
},
|
|
},
|
|
});
|