Add hint for users with no groups or contacts

If you have no contacts or groups, display a hint about phone numbers.

// FREEBIE
This commit is contained in:
lilia 2015-11-27 17:34:02 -08:00
parent e9949152bb
commit 891a5e54ad
6 changed files with 96 additions and 6 deletions

View file

@ -102,7 +102,10 @@
this.inboxListView.$el.hide();
});
this.hintView = new Whisper.HintView();
this.hintView = new Whisper.HintView({
className: 'conversation placeholder',
content: "Select a contact or group to start chatting."
});
if (inboxCollection.length === 0) {
this.hintView.render();
this.hintView.$el.prependTo(this.$('.conversation-stack'));
@ -139,6 +142,7 @@
},
hideHints: function() {
this.hintView.remove();
this.searchView.hideHints();
},
openConversation: function(e, conversation) {
this.hideHints();