Don't use customization.goback.url on critical errors in desktop.

This commit is contained in:
Julia Radzhabova 2018-02-07 12:21:10 +03:00
parent a0a8597d3d
commit 33c8dcf475
6 changed files with 6 additions and 6 deletions

View file

@ -1395,7 +1395,7 @@ define([
config.title = this.criticalErrorTitle;
config.iconCls = 'error';
if (this.appOptions.canBackToFolder) {
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
config.msg += '<br/><br/>' + this.criticalErrorExtText;
config.callback = function(btn) {
if (btn == 'ok')

View file

@ -867,7 +867,7 @@ define([
config.title = this.criticalErrorTitle;
// config.iconCls = 'error';
if (this.appOptions.canBackToFolder) {
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
config.msg += '</br></br>' + this.criticalErrorExtText;
config.callback = function() {
Common.NotificationCenter.trigger('goback');

View file

@ -1134,7 +1134,7 @@ define([
config.title = this.criticalErrorTitle;
config.iconCls = 'error';
if (this.appOptions.canBackToFolder) {
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
config.msg += '<br/><br/>' + this.criticalErrorExtText;
config.fn = function(btn) {
if (btn == 'ok') {

View file

@ -820,7 +820,7 @@ define([
config.title = this.criticalErrorTitle;
// config.iconCls = 'error';
if (this.appOptions.canBackToFolder) {
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
config.msg += '</br></br>' + this.criticalErrorExtText;
config.callback = function() {
Common.NotificationCenter.trigger('goback');

View file

@ -1298,7 +1298,7 @@ define([
config.title = this.criticalErrorTitle;
config.iconCls = 'error';
if (this.appOptions.canBackToFolder) {
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
config.msg += '<br/><br/>' + this.criticalErrorExtText;
config.callback = function(btn) {
if (btn == 'ok') {

View file

@ -960,7 +960,7 @@ define([
config.title = this.criticalErrorTitle;
// config.iconCls = 'error';
if (this.appOptions.canBackToFolder) {
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
config.msg += '</br></br>' + this.criticalErrorExtText;
config.callback = function() {
Common.NotificationCenter.trigger('goback');