mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 15:40:51 +01:00
Change conditions
This commit is contained in:
parent
2fa3662860
commit
007531139e
@ -84,6 +84,8 @@ const useNotificationState = () =>
|
||||
|
||||
if(configuration) for(const key in configuration) options.set(key, configuration[key]);
|
||||
|
||||
if (type === 'floorplan_editor.error') options.set('message', options.get('message').replace(/[^a-zA-Z._ ]/g, ''));
|
||||
|
||||
const title = getNotificationPart(options, type, 'title', true);
|
||||
const message = getNotificationPart(options, type, 'message', true).replace(/\\r/g, '\r');
|
||||
const linkTitle = getNotificationPart(options, type, 'linkTitle', false);
|
||||
@ -96,7 +98,7 @@ const useNotificationState = () =>
|
||||
}
|
||||
else
|
||||
{
|
||||
simpleAlert(message, type, linkUrl, linkTitle, title, image);
|
||||
simpleAlert(LocalizeText(message), type, linkUrl, linkTitle, title, image);
|
||||
}
|
||||
|
||||
if(options.get('sound')) PlaySound(options.get('sound'));
|
||||
|
Loading…
Reference in New Issue
Block a user