double confirm before delete all the ununsed segmensts (#10581)

Co-authored-by: yuezhang <yuezhang@freewheel.tv>
This commit is contained in:
zhangyue19921010 2020-11-20 00:07:52 +08:00 committed by GitHub
parent d7d2c804ad
commit abb03d38b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -576,6 +576,10 @@ GROUP BY 1`;
onSuccess={() => {
this.datasourceQueryManager.rerunLastQuery();
}}
warningChecks={[
`I understand that this operation will delete all metadata about the unused segments of ${killDatasource} and removes them from deep storage.`,
'I understand that this operation cannot be undone.',
]}
>
<p>
{`Are you sure you want to permanently delete unused segments in '${killDatasource}'?`}