diff --git a/src/components/app/FriendsList.vue b/src/components/app/FriendsList.vue
index 41d1198..a1fc822 100644
--- a/src/components/app/FriendsList.vue
+++ b/src/components/app/FriendsList.vue
@@ -29,6 +29,14 @@
+
@@ -60,6 +68,14 @@ export default {
localStorage.setItem("friendsListTab", tab);
}
},
+ methods: {
+ saveNotesBtn() {
+ this.$store.dispatch("openChat", {
+ uniqueID: this.user.uniqueID,
+ channelName: "Saved Notes"
+ });
+ }
+ },
mounted() {
const tab = localStorage.getItem("friendsListTab");
if (tab) {
@@ -67,6 +83,12 @@ export default {
}
},
computed: {
+ user() {
+ return this.$store.getters.user;
+ },
+ uniqueIDSelected() {
+ return this.$store.getters.selectedUserUniqueID === this.user.uniqueID;
+ },
DMNotification() {
const notifications = this.$store.getters.notifications;
const channels = this.$store.getters.channels;
@@ -96,7 +118,7 @@ export default {
}
};
-