From e95101adbfa5a8cd603d24ea617d67cdf2168cde Mon Sep 17 00:00:00 2001
From: Eugen Ciur <eugen@papermerge.com>
Date: Mon, 21 Feb 2022 20:53:27 +0100
Subject: [PATCH] minor styling

---
 app/components/group/new.js | 11 +++++------
 app/components/tag/new.js   | 16 +++++++---------
 2 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/app/components/group/new.js b/app/components/group/new.js
index 2d2c36e..b339851 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 a4e7bd0..81465c4 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();
   }
-- 
GitLab