You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/docker/services/common/update-service-modal.ts

14 lines
458 B

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,
});
return result ? { pullLatest: result.value } : undefined;
}