Don't use customization.goback.url on critical errors in desktop.
This commit is contained in:
parent
a0a8597d3d
commit
33c8dcf475
|
@ -1395,7 +1395,7 @@ define([
|
||||||
config.title = this.criticalErrorTitle;
|
config.title = this.criticalErrorTitle;
|
||||||
config.iconCls = 'error';
|
config.iconCls = 'error';
|
||||||
|
|
||||||
if (this.appOptions.canBackToFolder) {
|
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
|
||||||
config.msg += '<br/><br/>' + this.criticalErrorExtText;
|
config.msg += '<br/><br/>' + this.criticalErrorExtText;
|
||||||
config.callback = function(btn) {
|
config.callback = function(btn) {
|
||||||
if (btn == 'ok')
|
if (btn == 'ok')
|
||||||
|
|
|
@ -867,7 +867,7 @@ define([
|
||||||
config.title = this.criticalErrorTitle;
|
config.title = this.criticalErrorTitle;
|
||||||
// config.iconCls = 'error';
|
// config.iconCls = 'error';
|
||||||
|
|
||||||
if (this.appOptions.canBackToFolder) {
|
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
|
||||||
config.msg += '</br></br>' + this.criticalErrorExtText;
|
config.msg += '</br></br>' + this.criticalErrorExtText;
|
||||||
config.callback = function() {
|
config.callback = function() {
|
||||||
Common.NotificationCenter.trigger('goback');
|
Common.NotificationCenter.trigger('goback');
|
||||||
|
|
|
@ -1134,7 +1134,7 @@ define([
|
||||||
config.title = this.criticalErrorTitle;
|
config.title = this.criticalErrorTitle;
|
||||||
config.iconCls = 'error';
|
config.iconCls = 'error';
|
||||||
|
|
||||||
if (this.appOptions.canBackToFolder) {
|
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
|
||||||
config.msg += '<br/><br/>' + this.criticalErrorExtText;
|
config.msg += '<br/><br/>' + this.criticalErrorExtText;
|
||||||
config.fn = function(btn) {
|
config.fn = function(btn) {
|
||||||
if (btn == 'ok') {
|
if (btn == 'ok') {
|
||||||
|
|
|
@ -820,7 +820,7 @@ define([
|
||||||
config.title = this.criticalErrorTitle;
|
config.title = this.criticalErrorTitle;
|
||||||
// config.iconCls = 'error';
|
// config.iconCls = 'error';
|
||||||
|
|
||||||
if (this.appOptions.canBackToFolder) {
|
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
|
||||||
config.msg += '</br></br>' + this.criticalErrorExtText;
|
config.msg += '</br></br>' + this.criticalErrorExtText;
|
||||||
config.callback = function() {
|
config.callback = function() {
|
||||||
Common.NotificationCenter.trigger('goback');
|
Common.NotificationCenter.trigger('goback');
|
||||||
|
|
|
@ -1298,7 +1298,7 @@ define([
|
||||||
config.title = this.criticalErrorTitle;
|
config.title = this.criticalErrorTitle;
|
||||||
config.iconCls = 'error';
|
config.iconCls = 'error';
|
||||||
|
|
||||||
if (this.appOptions.canBackToFolder) {
|
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
|
||||||
config.msg += '<br/><br/>' + this.criticalErrorExtText;
|
config.msg += '<br/><br/>' + this.criticalErrorExtText;
|
||||||
config.callback = function(btn) {
|
config.callback = function(btn) {
|
||||||
if (btn == 'ok') {
|
if (btn == 'ok') {
|
||||||
|
|
|
@ -960,7 +960,7 @@ define([
|
||||||
config.title = this.criticalErrorTitle;
|
config.title = this.criticalErrorTitle;
|
||||||
// config.iconCls = 'error';
|
// config.iconCls = 'error';
|
||||||
|
|
||||||
if (this.appOptions.canBackToFolder) {
|
if (this.appOptions.canBackToFolder && !this.appOptions.isDesktopApp) {
|
||||||
config.msg += '</br></br>' + this.criticalErrorExtText;
|
config.msg += '</br></br>' + this.criticalErrorExtText;
|
||||||
config.callback = function() {
|
config.callback = function() {
|
||||||
Common.NotificationCenter.trigger('goback');
|
Common.NotificationCenter.trigger('goback');
|
||||||
|
|
Loading…
Reference in a new issue