From 6a7b98b3456d42a9517dfeef06af93d1453c16b2 Mon Sep 17 00:00:00 2001
From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
Date: Sat, 1 May 2021 19:26:17 +0530
Subject: [PATCH] Feat: Creates add note component for CRM (#2187)
* Feat: Creates add note component for CRM
---
.../dashboard/i18n/locale/en/contact.json | 7 ++
.../dashboard/contacts/components/AddNote.vue | 95 +++++++++++++++++++
.../contacts/components/ContactNote.vue | 2 +-
stories/Module/AddNote.stories.js | 19 ++++
stories/Module/ContactNote.stories.js | 47 +++++++++
stories/Module/Note.stories.js | 41 --------
6 files changed, 169 insertions(+), 42 deletions(-)
create mode 100644 app/javascript/dashboard/routes/dashboard/contacts/components/AddNote.vue
create mode 100644 stories/Module/AddNote.stories.js
create mode 100644 stories/Module/ContactNote.stories.js
delete mode 100644 stories/Module/Note.stories.js
diff --git a/app/javascript/dashboard/i18n/locale/en/contact.json b/app/javascript/dashboard/i18n/locale/en/contact.json
index b8d936d22..052a3709c 100644
--- a/app/javascript/dashboard/i18n/locale/en/contact.json
+++ b/app/javascript/dashboard/i18n/locale/en/contact.json
@@ -151,5 +151,12 @@
},
"VIEW_DETAILS": "View details"
}
+ },
+ "NOTES": {
+ "ADD": {
+ "BUTTON": "Add",
+ "PLACEHOLDER": "Add a note",
+ "TITLE": "Shift + Enter to create a note"
+ }
}
}
diff --git a/app/javascript/dashboard/routes/dashboard/contacts/components/AddNote.vue b/app/javascript/dashboard/routes/dashboard/contacts/components/AddNote.vue
new file mode 100644
index 000000000..802d60d78
--- /dev/null
+++ b/app/javascript/dashboard/routes/dashboard/contacts/components/AddNote.vue
@@ -0,0 +1,95 @@
+
+