feat: Add Ask assistant behind feature flag (#9995)
Co-authored-by: Ricardo Espinoza <ricardo@n8n.io> Co-authored-by: Milorad Filipovic <milorad@n8n.io>
This commit is contained in:
@@ -20,6 +20,10 @@ export interface NotificationErrorWithNodeAndDescription extends ApplicationErro
|
||||
const messageDefaults: Partial<Omit<NotificationOptions, 'message'>> = {
|
||||
dangerouslyUseHTMLString: false,
|
||||
position: 'bottom-right',
|
||||
zIndex: 3000, // above NDV and chat window
|
||||
offset: 64,
|
||||
appendTo: '#node-view-root',
|
||||
customClass: 'content-toast',
|
||||
};
|
||||
|
||||
const stickyNotificationQueue: NotificationHandle[] = [];
|
||||
@@ -154,7 +158,9 @@ export function useToast() {
|
||||
}
|
||||
|
||||
function showAlert(config: NotificationOptions): NotificationHandle {
|
||||
return Notification(config);
|
||||
return Notification({
|
||||
...config,
|
||||
});
|
||||
}
|
||||
|
||||
function causedByCredential(message: string | undefined) {
|
||||
|
||||
Reference in New Issue
Block a user