[DE] Fix Bug 43460 (#261)

This commit is contained in:
Julia Radzhabova 2019-11-06 11:07:56 +03:00 committed by Alexey Golubev
parent 4196914962
commit 3308662a1d
2 changed files with 5 additions and 0 deletions

View file

@ -81,6 +81,7 @@ define([
},
setMode: function(mode) {
this.mode = mode;
if (!mode.canHistoryClose) {
this.panelHistory.$el.find('#history-header').hide();
this.panelHistory.$el.find('#history-list').css('padding-top', 0);
@ -163,6 +164,8 @@ define([
},
onSetHistoryData: function(opts) {
if (!this.mode.canUseHistory) return;
if (opts.data.error) {
var config = {
title: this.notcriticalErrorTitle,

View file

@ -487,6 +487,8 @@ define([
},
onRefreshHistory: function(opts) {
if (!this.appOptions.canUseHistory) return;
this.loadMask && this.loadMask.hide();
if (opts.data.error || !opts.data.history) {
var historyStore = this.getApplication().getCollection('Common.Collections.HistoryVersions');