Disable toastr animations too

pull/5329/head
Rodrigo Nascimento 9 years ago
parent 47da4a566a
commit 4d2a314822
No known key found for this signature in database
GPG Key ID: 2C85B3AFE75D23F9
  1. 8
      client/startup/startup.js
  2. 3
      packages/rocketchat-ui-master/server/inject.js

@ -1,6 +1,14 @@
/* globals UserPresence, fireGlobalEvent, isRtl */
import moment from 'moment';
import toastr from 'toastr';
if (window.DISABLE_ANIMATION) {
toastr.options.timeOut = 1;
toastr.options.showDuration = 0;
toastr.options.hideDuration = 0;
toastr.options.extendedTimeOut = 0;
}
Meteor.startup(function() {
TimeSync.loggingEnabled = false;

@ -60,6 +60,9 @@ if (process.env.DISABLE_ANIMATION || process.env.TEST_MODE === 'true') {
transition: none !important;
}
</style>
<script>
window.DISABLE_ANIMATION = true;
</script>
`);
}

Loading…
Cancel
Save