update
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -69,12 +69,14 @@ export class GitopsViewConnections extends DeesElement {
|
|||||||
{
|
{
|
||||||
name: 'Edit',
|
name: 'Edit',
|
||||||
iconName: 'lucide:edit',
|
iconName: 'lucide:edit',
|
||||||
action: async (item: any) => { await this.editConnection(item); },
|
type: ['inRow'],
|
||||||
|
actionFunc: async ({ item }: any) => { await this.editConnection(item); },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Test',
|
name: 'Test',
|
||||||
iconName: 'lucide:plug',
|
iconName: 'lucide:plug',
|
||||||
action: async (item: any) => {
|
type: ['inRow'],
|
||||||
|
actionFunc: async ({ item }: any) => {
|
||||||
await appstate.connectionsStatePart.dispatchAction(
|
await appstate.connectionsStatePart.dispatchAction(
|
||||||
appstate.testConnectionAction,
|
appstate.testConnectionAction,
|
||||||
{ connectionId: item.id },
|
{ connectionId: item.id },
|
||||||
@@ -83,8 +85,9 @@ export class GitopsViewConnections extends DeesElement {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Pause/Resume',
|
name: 'Pause/Resume',
|
||||||
iconName: 'lucide:pauseCircle',
|
iconName: 'lucide:pause-circle',
|
||||||
action: async (item: any) => {
|
type: ['inRow'],
|
||||||
|
actionFunc: async ({ item }: any) => {
|
||||||
const isPaused = item.status === 'paused';
|
const isPaused = item.status === 'paused';
|
||||||
const actionLabel = isPaused ? 'Resume' : 'Pause';
|
const actionLabel = isPaused ? 'Resume' : 'Pause';
|
||||||
await plugins.deesCatalog.DeesModal.createAndShow({
|
await plugins.deesCatalog.DeesModal.createAndShow({
|
||||||
@@ -108,9 +111,10 @@ export class GitopsViewConnections extends DeesElement {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Delete',
|
name: 'Delete',
|
||||||
iconName: 'lucide:trash2',
|
iconName: 'lucide:trash-2',
|
||||||
action: async (item: any) => {
|
type: ['inRow'],
|
||||||
const confirmed = await plugins.deesCatalog.DeesModal.createAndShow({
|
actionFunc: async ({ item }: any) => {
|
||||||
|
await plugins.deesCatalog.DeesModal.createAndShow({
|
||||||
heading: 'Delete Connection',
|
heading: 'Delete Connection',
|
||||||
content: html`<p style="color: #fff;">Are you sure you want to delete connection "${item.name}"?</p>`,
|
content: html`<p style="color: #fff;">Are you sure you want to delete connection "${item.name}"?</p>`,
|
||||||
menuOptions: [
|
menuOptions: [
|
||||||
|
|||||||
@@ -99,7 +99,8 @@ export class GitopsViewGroups extends DeesElement {
|
|||||||
{
|
{
|
||||||
name: 'View Secrets',
|
name: 'View Secrets',
|
||||||
iconName: 'lucide:key',
|
iconName: 'lucide:key',
|
||||||
action: async (item: any) => {
|
type: ['inRow'],
|
||||||
|
actionFunc: async ({ item }: any) => {
|
||||||
appstate.uiStatePart.dispatchAction(appstate.setActiveViewAction, { view: 'secrets' });
|
appstate.uiStatePart.dispatchAction(appstate.setActiveViewAction, { view: 'secrets' });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -133,12 +133,14 @@ export class GitopsViewPipelines extends DeesElement {
|
|||||||
{
|
{
|
||||||
name: 'View Jobs',
|
name: 'View Jobs',
|
||||||
iconName: 'lucide:list',
|
iconName: 'lucide:list',
|
||||||
action: async (item: any) => { await this.viewJobs(item); },
|
type: ['inRow'],
|
||||||
|
actionFunc: async ({ item }: any) => { await this.viewJobs(item); },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Retry',
|
name: 'Retry',
|
||||||
iconName: 'lucide:refresh-cw',
|
iconName: 'lucide:refresh-cw',
|
||||||
action: async (item: any) => {
|
type: ['inRow'],
|
||||||
|
actionFunc: async ({ item }: any) => {
|
||||||
await appstate.dataStatePart.dispatchAction(appstate.retryPipelineAction, {
|
await appstate.dataStatePart.dispatchAction(appstate.retryPipelineAction, {
|
||||||
connectionId: this.selectedConnectionId,
|
connectionId: this.selectedConnectionId,
|
||||||
projectId: this.selectedProjectId,
|
projectId: this.selectedProjectId,
|
||||||
@@ -149,7 +151,8 @@ export class GitopsViewPipelines extends DeesElement {
|
|||||||
{
|
{
|
||||||
name: 'Cancel',
|
name: 'Cancel',
|
||||||
iconName: 'lucide:x-circle',
|
iconName: 'lucide:x-circle',
|
||||||
action: async (item: any) => {
|
type: ['inRow'],
|
||||||
|
actionFunc: async ({ item }: any) => {
|
||||||
await appstate.dataStatePart.dispatchAction(appstate.cancelPipelineAction, {
|
await appstate.dataStatePart.dispatchAction(appstate.cancelPipelineAction, {
|
||||||
connectionId: this.selectedConnectionId,
|
connectionId: this.selectedConnectionId,
|
||||||
projectId: this.selectedProjectId,
|
projectId: this.selectedProjectId,
|
||||||
|
|||||||
@@ -100,14 +100,16 @@ export class GitopsViewProjects extends DeesElement {
|
|||||||
{
|
{
|
||||||
name: 'View Secrets',
|
name: 'View Secrets',
|
||||||
iconName: 'lucide:key',
|
iconName: 'lucide:key',
|
||||||
action: async (item: any) => {
|
type: ['inRow'],
|
||||||
|
actionFunc: async ({ item }: any) => {
|
||||||
appstate.uiStatePart.dispatchAction(appstate.setActiveViewAction, { view: 'secrets' });
|
appstate.uiStatePart.dispatchAction(appstate.setActiveViewAction, { view: 'secrets' });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'View Pipelines',
|
name: 'View Pipelines',
|
||||||
iconName: 'lucide:play',
|
iconName: 'lucide:play',
|
||||||
action: async (item: any) => {
|
type: ['inRow'],
|
||||||
|
actionFunc: async ({ item }: any) => {
|
||||||
appstate.uiStatePart.dispatchAction(appstate.setActiveViewAction, { view: 'pipelines' });
|
appstate.uiStatePart.dispatchAction(appstate.setActiveViewAction, { view: 'pipelines' });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -165,12 +165,14 @@ export class GitopsViewSecrets extends DeesElement {
|
|||||||
{
|
{
|
||||||
name: 'Edit',
|
name: 'Edit',
|
||||||
iconName: 'lucide:edit',
|
iconName: 'lucide:edit',
|
||||||
action: async (item: any) => { await this.editSecret(item); },
|
type: ['inRow'],
|
||||||
|
actionFunc: async ({ item }: any) => { await this.editSecret(item); },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Delete',
|
name: 'Delete',
|
||||||
iconName: 'lucide:trash2',
|
iconName: 'lucide:trash-2',
|
||||||
action: async (item: any) => {
|
type: ['inRow'],
|
||||||
|
actionFunc: async ({ item }: any) => {
|
||||||
await plugins.deesCatalog.DeesModal.createAndShow({
|
await plugins.deesCatalog.DeesModal.createAndShow({
|
||||||
heading: 'Delete Secret',
|
heading: 'Delete Secret',
|
||||||
content: html`<p style="color: #fff;">Are you sure you want to delete secret "${item.key}"?</p>`,
|
content: html`<p style="color: #fff;">Are you sure you want to delete secret "${item.key}"?</p>`,
|
||||||
|
|||||||
Reference in New Issue
Block a user