2023-02-14 08:19:41 +00:00
|
|
|
import { openSwitchPrompt } from '@@/modals/SwitchPrompt';
|
|
|
|
import { ModalType } from '@@/modals';
|
|
|
|
import { buildConfirmButton } from '@@/modals/utils';
|
|
|
|
|
|
|
|
export async function confirmServiceForceUpdate(message: string) {
|
|
|
|
const result = await openSwitchPrompt('Are you sure?', 'Re-pull image', {
|
|
|
|
message,
|
|
|
|
confirmButton: buildConfirmButton('Update'),
|
|
|
|
modalType: ModalType.Warn,
|
2024-04-11 00:11:38 +00:00
|
|
|
'data-cy': 'confirm-service-force-update',
|
2023-02-14 08:19:41 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
return result ? { pullLatest: result.value } : undefined;
|
|
|
|
}
|