${updatedRegistry?.data.status === 'active' ? html`
✓
Connection successful!
` : html`
✗
Connection failed!
${updatedRegistry?.data.lastError ? html`
Error: ${updatedRegistry.data.lastError}
` : ''}
`}
`,
menuOptions: [
{
name: 'OK',
action: async (modalArg) => {
await modalArg.destroy();
},
},
],
});
},
},
{
name: 'Delete',
iconName: 'trash',
type: ['contextmenu'],
actionFunc: async (actionDataArg) => {
const registry = actionDataArg.item as plugins.interfaces.data.IExternalRegistry;
plugins.deesCatalog.DeesModal.createAndShow({
heading: `Delete Registry: ${registry.data.name}`,
content: html`
Do you really want to delete this external registry?
This will remove all stored credentials and configuration.
${registry.data.name} (${registry.data.url})
`,
menuOptions: [
{
name: 'Cancel',
action: async (modalArg) => {
await modalArg.destroy();
},
},
{
name: 'Delete',
action: async (modalArg) => {
await appstate.dataState.dispatchAction(appstate.deleteExternalRegistryAction, {
registryId: registry.id,
});
await modalArg.destroy();
},
},
],
});
},
},
] as plugins.deesCatalog.ITableAction[]}
>