mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
feat(editor): Combine 'Move to Folder' and 'Change owner' modals (#15756)
This new modal also allows transferring entire folders to other projects and users.
This commit is contained in:
@@ -98,6 +98,13 @@ function handleEnter() {
|
||||
emit('enter');
|
||||
}
|
||||
|
||||
function onOpened() {
|
||||
// Triggers when the Dialog opening animation ends.
|
||||
// This can be helpful at positioning dropdowns etc correctly,
|
||||
// as the dialog doesn't now move anymore at this point.
|
||||
props.eventBus?.emit('opened');
|
||||
}
|
||||
|
||||
function onWindowKeydown(event: KeyboardEvent) {
|
||||
if (event?.keyCode === 13) handleEnter();
|
||||
}
|
||||
@@ -150,6 +157,7 @@ function getCustomClass() {
|
||||
:data-test-id="`${name}-modal`"
|
||||
:modal-class="center ? $style.center : ''"
|
||||
:z-index="APP_Z_INDEXES.MODALS"
|
||||
@opened="onOpened"
|
||||
>
|
||||
<template v-if="$slots.header" #header>
|
||||
<slot v-if="!loading" name="header" />
|
||||
|
||||
Reference in New Issue
Block a user