diff --git a/app/js/services.js b/app/js/services.js index 168771dd..51975be8 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -2668,14 +2668,16 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) !callbackAnswer.message.length) { return; } + var html = RichTextProcessor.wrapRichText(callbackAnswer.message, {noLinks: true, noLinebreaks: true}); if (callbackAnswer.pFlags.alert) { - ErrorService.alert(callbackAnswer.message); + ErrorService.show({ + title_html: html, + alert: true + }); } else { - var html = RichTextProcessor.wrapRichText(callbackAnswer.message, {noLinks: true, noLinebreaks: true}).valueOf();; toaster.pop({ type: 'info', - // timeout: 100000, - body: html, + body: html.valueOf(), bodyOutputType: 'trustedHtml', showCloseButton: false }); diff --git a/app/less/app.less b/app/less/app.less index 24e826fe..4c720f4e 100644 --- a/app/less/app.less +++ b/app/less/app.less @@ -3418,6 +3418,13 @@ li.inline_result_sticker.composer_autocomplete_option_active a { line-height: 160%; } +.md_simple_modal_alert_body { + .md_simple_header, + .error_modal_description { + text-align: center; + } +} + .error_modal_details { textarea { display: block; diff --git a/app/partials/desktop/error_modal.html b/app/partials/desktop/error_modal.html index 3b7d7350..2b9194cb 100644 --- a/app/partials/desktop/error_modal.html +++ b/app/partials/desktop/error_modal.html @@ -1,6 +1,6 @@
-
+

@@ -15,9 +15,11 @@ +

-

- +

+ +

@@ -46,6 +48,7 @@ {0} +
@@ -71,7 +74,7 @@ Stack: {{error.originalError.stack || error.stack}}
-
+