-
- {task.name}
- {task.adminOnlyView &&
}
+
+
+
+
+ {task.name}
+ {task.adminOnlyView && }
+
+
{moment.utc(task.created).local().format('DD MMM YYYY, HH:mm:ss (Z)')}
+
{task.service}
+
+ {task.status.charAt(0).toUpperCase() + task.status.slice(1)}
+
- {moment.utc(task.created).local().format('DD MMM YYYY, HH:mm:ss (Z)')}
- {task.service}
-
- {task.status.charAt(0).toUpperCase() + task.status.slice(1)}
-
-
-
+
+ {['new', 'pending', 'queued', 'running'].includes(task.status) && (
+
+ )}
+
))}
diff --git a/src/lib/query/EnvironmentWithTask.js b/src/lib/query/EnvironmentWithTask.js
index 7ce5dee1..6fc9d461 100644
--- a/src/lib/query/EnvironmentWithTask.js
+++ b/src/lib/query/EnvironmentWithTask.js
@@ -7,11 +7,13 @@ export default gql`
name
openshiftProjectName
project {
+ id
name
problemsUi
factsUi
}
tasks(taskName: $taskName) {
+ id
name
taskName
status
diff --git a/src/lib/query/EnvironmentWithTasks.js b/src/lib/query/EnvironmentWithTasks.js
index e172ddc8..765d29bc 100644
--- a/src/lib/query/EnvironmentWithTasks.js
+++ b/src/lib/query/EnvironmentWithTasks.js
@@ -7,6 +7,7 @@ export default gql`
name
openshiftProjectName
project {
+ id
name
problemsUi
factsUi
diff --git a/src/pages/task.js b/src/pages/task.js
index 4da0ccc5..04015d5b 100644
--- a/src/pages/task.js
+++ b/src/pages/task.js
@@ -48,21 +48,17 @@ export const PageTask = ({ router }) => {
{`${router.query.taskName} | Task`}
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
>
);
@@ -116,7 +112,11 @@ export const PageTask = ({ router }) => {
-
+
diff --git a/src/pages/tasks.js b/src/pages/tasks.js
index 4277cd56..05db88d7 100644
--- a/src/pages/tasks.js
+++ b/src/pages/tasks.js
@@ -117,7 +117,7 @@ export const PageTasks = ({ router, renderAddTasks }) => {
/>
);
}
-
+
subscribeToMore({
document: TasksSubscription,
variables: { environment: environment.id },
@@ -170,8 +170,10 @@ export const PageTasks = ({ router, renderAddTasks }) => {
{!renderAddTasks &&
}