mirror of https://github.com/portainer/portainer
16 lines
514 B
TypeScript
16 lines
514 B
TypeScript
import { ModalType } from '@@/modals';
|
|
import { ConfirmCallback, openConfirm } from '@@/modals/confirm';
|
|
import { buildConfirmButton } from '@@/modals/utils';
|
|
|
|
export async function confirmImageExport(callback: ConfirmCallback) {
|
|
const result = await openConfirm({
|
|
modalType: ModalType.Warn,
|
|
title: 'Caution',
|
|
message:
|
|
'The export may take several minutes, do not navigate away whilst the export is in progress.',
|
|
confirmButton: buildConfirmButton('Continue'),
|
|
});
|
|
|
|
callback(result);
|
|
}
|