update
This commit is contained in:
@@ -69,12 +69,14 @@ export class GitopsViewConnections extends DeesElement {
|
||||
{
|
||||
name: 'Edit',
|
||||
iconName: 'lucide:edit',
|
||||
action: async (item: any) => { await this.editConnection(item); },
|
||||
type: ['inRow'],
|
||||
actionFunc: async ({ item }: any) => { await this.editConnection(item); },
|
||||
},
|
||||
{
|
||||
name: 'Test',
|
||||
iconName: 'lucide:plug',
|
||||
action: async (item: any) => {
|
||||
type: ['inRow'],
|
||||
actionFunc: async ({ item }: any) => {
|
||||
await appstate.connectionsStatePart.dispatchAction(
|
||||
appstate.testConnectionAction,
|
||||
{ connectionId: item.id },
|
||||
@@ -83,8 +85,9 @@ export class GitopsViewConnections extends DeesElement {
|
||||
},
|
||||
{
|
||||
name: 'Pause/Resume',
|
||||
iconName: 'lucide:pauseCircle',
|
||||
action: async (item: any) => {
|
||||
iconName: 'lucide:pause-circle',
|
||||
type: ['inRow'],
|
||||
actionFunc: async ({ item }: any) => {
|
||||
const isPaused = item.status === 'paused';
|
||||
const actionLabel = isPaused ? 'Resume' : 'Pause';
|
||||
await plugins.deesCatalog.DeesModal.createAndShow({
|
||||
@@ -108,9 +111,10 @@ export class GitopsViewConnections extends DeesElement {
|
||||
},
|
||||
{
|
||||
name: 'Delete',
|
||||
iconName: 'lucide:trash2',
|
||||
action: async (item: any) => {
|
||||
const confirmed = await plugins.deesCatalog.DeesModal.createAndShow({
|
||||
iconName: 'lucide:trash-2',
|
||||
type: ['inRow'],
|
||||
actionFunc: async ({ item }: any) => {
|
||||
await plugins.deesCatalog.DeesModal.createAndShow({
|
||||
heading: 'Delete Connection',
|
||||
content: html`<p style="color: #fff;">Are you sure you want to delete connection "${item.name}"?</p>`,
|
||||
menuOptions: [
|
||||
|
||||
Reference in New Issue
Block a user