output error msg as type 'error' not 'success'

This commit is contained in:
Uwe Steinmann 2025-11-23 08:26:42 +01:00
parent dbd3c87f17
commit 71921d228b

View File

@ -63,7 +63,7 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style {
success: function(data) {
noty({
text: data.msg,
type: (data.error) ? 'error' : 'success',
type: (data.success) ? 'success' : 'error',
dismissQueue: true,
layout: 'topRight',
theme: 'defaultTheme',
@ -83,7 +83,7 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style {
success: function(data) {
noty({
text: data.msg,
type: (data.error) ? 'error' : 'success',
type: (data.success) ? 'success' : 'error',
dismissQueue: true,
layout: 'topRight',
theme: 'defaultTheme',
@ -103,7 +103,7 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style {
success: function(data) {
noty({
text: data.msg,
type: (data.error) ? 'error' : 'success',
type: (data.success) ? 'success' : 'error',
dismissQueue: true,
layout: 'topRight',
theme: 'defaultTheme',