mirror of https://github.com/grafana/grafana.git
Provisioning: Show configured branch in move drawer
This commit is contained in:
parent
43be84076c
commit
fe23ee586a
|
@ -195,11 +195,12 @@ export function BulkMoveProvisionedResource({ folderUid, selectedItems, onDismis
|
||||||
const workflowOptions = getWorkflowOptions(repository);
|
const workflowOptions = getWorkflowOptions(repository);
|
||||||
const folderPath = folder?.metadata?.annotations?.[AnnoKeySourcePath] || '';
|
const folderPath = folder?.metadata?.annotations?.[AnnoKeySourcePath] || '';
|
||||||
const timestamp = generateTimestamp();
|
const timestamp = generateTimestamp();
|
||||||
|
const defaultWorkflow = getDefaultWorkflow(repository);
|
||||||
|
|
||||||
const initialValues = {
|
const initialValues = {
|
||||||
comment: '',
|
comment: '',
|
||||||
ref: `bulk-move/${timestamp}`,
|
ref: defaultWorkflow === 'branch' ? `bulk-move/${timestamp}` : (repository?.branch ?? ''),
|
||||||
workflow: getDefaultWorkflow(repository),
|
workflow: defaultWorkflow,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!repository || isReadOnlyRepo) {
|
if (!repository || isReadOnlyRepo) {
|
||||||
|
|
Loading…
Reference in New Issue