mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Sinewave animation for pending requests
Tryin it on for size. // FREEBIE
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
this.listenTo(this.model, 'change', this.renderSent);
|
||||
this.listenTo(this.model, 'change:flags change:group_update', this.renderControl);
|
||||
this.listenTo(this.model, 'destroy', this.remove);
|
||||
this.listenTo(this.model, 'pending', this.renderPending);
|
||||
this.listenTo(this.model, 'done', this.renderDone);
|
||||
},
|
||||
events: {
|
||||
'click .timestamp': 'select',
|
||||
@@ -26,6 +28,12 @@
|
||||
className: function() {
|
||||
return ["entry", this.model.get('type')].join(' ');
|
||||
},
|
||||
renderPending: function() {
|
||||
this.$el.addClass('pending');
|
||||
},
|
||||
renderDone: function() {
|
||||
this.$el.removeClass('pending');
|
||||
},
|
||||
renderSent: function() {
|
||||
if (this.model.isOutgoing()) {
|
||||
this.$el.toggleClass('sent', !!this.model.get('sent'));
|
||||
|
||||
Reference in New Issue
Block a user