Are you sure you want to delete this service?
${service.data.name}
${service.data.description}
This will also delete ${service.data.deploymentIds?.length || 0} deployment(s)
`,
menuOptions: [
{
name: 'Cancel',
action: async (modalArg) => {
await modalArg.destroy();
},
},
{
name: 'Delete',
action: async (modalArg) => {
await appstate.dataState.dispatchAction(appstate.deleteServiceAction, {
serviceId: service.id,
});
await modalArg.destroy();
},
},
],
});
},
},
] as plugins.deesCatalog.ITableAction[]}
>