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:
parent
e9949152bb
commit
891a5e54ad
6 changed files with 96 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue