1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-30 18:49:43 +02:00

More UI conversion to new framework

This commit is contained in:
Harvey Kandola 2018-05-24 18:09:38 +01:00
parent a453052087
commit 5d757c992f
17 changed files with 442 additions and 416 deletions

View file

@ -9,7 +9,18 @@
//
// https://documize.com
import { inject as service } from '@ember/service';
import Controller from '@ember/controller';
export default Controller.extend({
categorySvc: service('category'),
refresh: 0,
actions: {
onAdd(c) {
this.get('categorySvc').add(c).then(() => {
this.set('refresh', this.get('refresh')+1);
});
}
}
});