Setup loading gif on conversation list
TODO: get actual gif asset in there.
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
if (textsecure.storage.getUnencrypted("number_id") === undefined) {
|
if (textsecure.storage.getUnencrypted("number_id") === undefined) {
|
||||||
window.location = '/options.html';
|
window.location = '/options.html';
|
||||||
} else {
|
} else {
|
||||||
new Whisper.InboxView({el: document});
|
new Whisper.InboxView({el: $('body')});
|
||||||
textsecure.storage.putUnencrypted("unreadCount", 0);
|
textsecure.storage.putUnencrypted("unreadCount", 0);
|
||||||
extension.navigator.setBadgeText("");
|
extension.navigator.setBadgeText("");
|
||||||
}
|
}
|
||||||
|
@@ -32,7 +32,10 @@
|
|||||||
collection : this.conversations
|
collection : this.conversations
|
||||||
});
|
});
|
||||||
|
|
||||||
this.conversations.fetchActive({reset: true});
|
this.$el.addClass('loading');
|
||||||
|
this.conversations.fetchActive({reset: true}).then(function() {
|
||||||
|
this.$el.removeClass('loading');
|
||||||
|
}.bind(this));
|
||||||
|
|
||||||
extension.on('message', function(message) {
|
extension.on('message', function(message) {
|
||||||
this.conversations.fetch({id: message.conversationId}).then(function() {
|
this.conversations.fetch({id: message.conversationId}).then(function() {
|
||||||
|
@@ -2,6 +2,10 @@
|
|||||||
margin-top: 36px;
|
margin-top: 36px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.loading .gutter {
|
||||||
|
// TODO: spinner
|
||||||
|
}
|
||||||
|
|
||||||
.contact .checkbox {
|
.contact .checkbox {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user