diff --git a/app/components/group/new.js b/app/components/group/new.js index 2d2c36ece0f7874b6f3b454cb33f44cedc54b0bd..b33985160b117f76ad910d4e02262a0916f785ee 100644 --- a/app/components/group/new.js +++ b/app/components/group/new.js @@ -1,7 +1,8 @@ import Component from '@glimmer/component'; import { action } from '@ember/object'; import { tracked } from '@glimmer/tracking'; -import { inject as service } from '@ember/service'; +import { service } from '@ember/service'; + export default class NewGroupComponent extends Component { @service store; @@ -15,11 +16,9 @@ export default class NewGroupComponent extends Component { @action onCreate() { - this.store - .createRecord('group', { - name: this.new_name, - }) - .save(); + this.store.createRecord('group', { + name: this.new_name, + }).save(); this._empty_form(); } diff --git a/app/components/tag/new.js b/app/components/tag/new.js index a4e7bd09adff0d6754b9687926421dfe9790001d..81465c4acd98cbdd9d99f3611ece52834101e0bd 100644 --- a/app/components/tag/new.js +++ b/app/components/tag/new.js @@ -50,15 +50,13 @@ export default class NewTagComponent extends Component { @action onCreate() { - this.store - .createRecord('tag', { - name: this.new_name, - description: this.new_description, - pinned: this.new_pinned, - bg_color: this.new_bg_color, - fg_color: this.new_fg_color, - }) - .save(); + this.store.createRecord('tag', { + name: this.new_name, + description: this.new_description, + pinned: this.new_pinned, + bg_color: this.new_bg_color, + fg_color: this.new_fg_color, + }).save(); this._empty_form(); }