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:
Jaakko Husso
2025-05-28 23:41:07 +03:00
committed by GitHub
parent ba70cab9d5
commit e860dd6d2e
27 changed files with 1989 additions and 292 deletions

View File

@@ -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" />