Skip to content
Snippets Groups Projects
Commit e95101ad authored by Eugen Ciur's avatar Eugen Ciur
Browse files

minor styling

parent 30f95bfa
No related branches found
No related tags found
No related merge requests found
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();
}
......
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment