diff --git a/dist/index.css b/dist/index.css index dfc1fe4..c333061 100644 --- a/dist/index.css +++ b/dist/index.css @@ -20,6 +20,11 @@ body { overflow:auto; } +.activegroup { + font-weight: bold; + color: #90EE90 +} + #main { margin-left: 13rem; padding-left: 1rem; diff --git a/dist/index.html b/dist/index.html index f183183..f58cfa1 100644 --- a/dist/index.html +++ b/dist/index.html @@ -16,7 +16,7 @@ Groups🌱 diff --git a/index.js b/index.js index 6896ca8..a0450fd 100644 --- a/index.js +++ b/index.js @@ -105,6 +105,8 @@ const menu = new Vue({ groups: [], peers: [], + activeGroupId: '', + // group dialog groupKey: '', showGroupEdit: false, @@ -117,6 +119,7 @@ const menu = new Vue({ methods: { dumpDB, openGroup: function(group) { + this.activeGroupId = group.id new Vue(chatApp(pull, ssbSingleton, group, getChatFeed)).$mount("#app") }, editGroupConfig: function(group) { @@ -179,7 +182,8 @@ const menu = new Vue({ if (err) return console.error(err) this.showGroupEdit = false - + this.activeGroupId = groupId + new Vue( chatApp(pull, ssbSingleton, { key: groupKey, id: groupId }, getChatFeed)