MessageView: Be resilient to multiple renders of a network error
FREEBIE
This commit is contained in:
parent
5e62d0cfd8
commit
30bc3fca3a
1 changed files with 1 additions and 2 deletions
|
@ -237,10 +237,9 @@
|
||||||
} else {
|
} else {
|
||||||
this.$('.error-icon-container').remove();
|
this.$('.error-icon-container').remove();
|
||||||
}
|
}
|
||||||
|
this.$('.meta .hasRetry').remove();
|
||||||
if (this.model.hasNetworkError()) {
|
if (this.model.hasNetworkError()) {
|
||||||
this.$('.meta').prepend(new NetworkErrorView().render().el);
|
this.$('.meta').prepend(new NetworkErrorView().render().el);
|
||||||
} else {
|
|
||||||
this.$('.meta .hasRetry').remove();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
renderControl: function() {
|
renderControl: function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue