|
|
@ -277,8 +277,8 @@ export function saveDashboard(options: SaveDashboardOptions) { |
|
|
|
function deleteFolder(uid: string, showSuccessAlert: boolean) { |
|
|
|
function deleteFolder(uid: string, showSuccessAlert: boolean) { |
|
|
|
return getBackendSrv().request({ |
|
|
|
return getBackendSrv().request({ |
|
|
|
method: 'DELETE', |
|
|
|
method: 'DELETE', |
|
|
|
url: `/api/folders/${uid}?forceDeleteRules=true`, |
|
|
|
url: `/api/folders/${uid}?forceDeleteRules=false`, |
|
|
|
showSuccessAlert: showSuccessAlert === true, |
|
|
|
showSuccessAlert: showSuccessAlert, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -298,7 +298,7 @@ export function deleteDashboard(uid: string, showSuccessAlert: boolean) { |
|
|
|
return getBackendSrv().request({ |
|
|
|
return getBackendSrv().request({ |
|
|
|
method: 'DELETE', |
|
|
|
method: 'DELETE', |
|
|
|
url: `/api/dashboards/uid/${uid}`, |
|
|
|
url: `/api/dashboards/uid/${uid}`, |
|
|
|
showSuccessAlert: showSuccessAlert === true, |
|
|
|
showSuccessAlert: showSuccessAlert, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|