Provisioning: Show configured branch in move drawer

This commit is contained in:
Clarity-89 2025-10-03 18:14:07 +03:00
parent 43be84076c
commit fe23ee586a
1 changed files with 3 additions and 2 deletions

View File

@ -195,11 +195,12 @@ export function BulkMoveProvisionedResource({ folderUid, selectedItems, onDismis
const workflowOptions = getWorkflowOptions(repository);
const folderPath = folder?.metadata?.annotations?.[AnnoKeySourcePath] || '';
const timestamp = generateTimestamp();
const defaultWorkflow = getDefaultWorkflow(repository);
const initialValues = {
comment: '',
ref: `bulk-move/${timestamp}`,
workflow: getDefaultWorkflow(repository),
ref: defaultWorkflow === 'branch' ? `bulk-move/${timestamp}` : (repository?.branch ?? ''),
workflow: defaultWorkflow,
};
if (!repository || isReadOnlyRepo) {