Merge pull request #4147 from mfilser/app_reconnect_with_link

App reconnect is now possible if the connection was interrupted
reviewable/pr4148/r1
Lauri Ojansivu 4 years ago committed by GitHub
commit 48ecbf5017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      client/components/main/header.jade
  2. 7
      client/components/main/header.js
  3. 1
      i18n/en.i18n.json

@ -93,3 +93,6 @@ template(name="offlineWarning")
p
i.fa.fa-warning
| {{_ 'app-is-offline'}}
a.app-try-reconnect
{{_ 'app-try-reconnect'}}

@ -41,3 +41,10 @@ Template.header.events({
Session.set('currentCard', null);
},
});
Template.offlineWarning.events({
'click a.app-try-reconnect'(event) {
event.preventDefault();
Meteor.reconnect();
},
});

@ -106,6 +106,7 @@
"and-n-other-card_plural": "And __count__ other cards",
"apply": "Apply",
"app-is-offline": "Loading, please wait. Refreshing the page will cause data loss. If loading does not work, please check that server has not stopped.",
"app-try-reconnect": "Try reconnect.",
"archive": "Move to Archive",
"archive-all": "Move All to Archive",
"archive-board": "Move Board to Archive",

Loading…
Cancel
Save