mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-01 16:23:33 +00:00
More react
- consolidated lang items - proxy host paths work
This commit is contained in:
@@ -24,4 +24,15 @@ const showError = (message: string) => {
|
||||
});
|
||||
};
|
||||
|
||||
export { showSuccess, showError };
|
||||
const showObjectSuccess = (obj: string, action: string) => {
|
||||
showSuccess(
|
||||
intl.formatMessage(
|
||||
{
|
||||
id: `notification.object-${action}`,
|
||||
},
|
||||
{ object: intl.formatMessage({ id: obj }) },
|
||||
),
|
||||
);
|
||||
};
|
||||
|
||||
export { showSuccess, showError, showObjectSuccess };
|
||||
|
||||
Reference in New Issue
Block a user