import type { IComponentOptions, IController } from 'angular'; import { module } from 'angular'; import type { Application } from '../../application/application.model'; import type { IServerGroup } from '../../domain'; class ServerGroupRunningTasksCtrl implements IController { public serverGroup: IServerGroup; public application: Application; } const serverGroupRunningTasksComponent: IComponentOptions = { bindings: { serverGroup: '<', application: '<', }, controller: ServerGroupRunningTasksCtrl, template: `
{{task.name}}
{{step.name | robotToHuman }}
{{step.runningTimeInMs | duration }}
Pipeline: {{execution.name}}
{{stage.name | robotToHuman }}
{{stage.runningTimeInMs | duration }}
`, }; export const RUNNING_TASKS_DETAILS_COMPONENT = 'spinnaker.core.serverGroup.details.runningTasks.component'; module(RUNNING_TASKS_DETAILS_COMPONENT, []).component( 'serverGroupRunningTasksDetails', serverGroupRunningTasksComponent, );