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:
parent
a453052087
commit
5d757c992f
17 changed files with 442 additions and 416 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue