ccdb-web/app/controllers/collections/index.js
2017-10-01 16:49:43 -07:00

20 lines
391 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'));
},
createCollection() {
this.transitionToRoute('collections.create');
},
},
});