1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

feat(ui): allow-different-modal-icons EE-3751 (#7299)

* feat(ui): update modal icons EE-3751
This commit is contained in:
Ali 2022-07-28 17:33:21 +12:00 committed by GitHub
parent bb066cd58c
commit d574a71cb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 113 additions and 39 deletions

View file

@ -1,7 +1,10 @@
import { useRouter } from '@uirouter/react';
import type { Environment } from '@/portainer/environments/types';
import { confirmAsync } from '@/portainer/services/modal.service/confirm';
import {
confirmAsync,
confirmDestructiveAsync,
} from '@/portainer/services/modal.service/confirm';
import { promptAsync } from '@/portainer/services/modal.service/prompt';
import * as notifications from '@/portainer/services/notifications';
import { activateDevice } from '@/portainer/hostmanagement/open-amt/open-amt.service';
@ -63,7 +66,7 @@ export function EdgeDevicesDatatableActions({
);
async function onDeleteEdgeDeviceClick() {
const confirmed = await confirmAsync({
const confirmed = await confirmDestructiveAsync({
title: 'Are you sure ?',
message:
'This action will remove all configurations associated to your environment(s). Continue?',