From 53a176808cdd82e650ba29847768cd94c570af87 Mon Sep 17 00:00:00 2001 From: Jan Kuri Date: Sun, 20 Aug 2017 05:38:54 +0200 Subject: [PATCH] fix(ui): fix style glitches, remove job and build history option from UI --- src/api/process-manager.ts | 6 ++-- .../app-build-details.component.html | 33 ------------------- .../components/app-job/app-job.component.html | 33 ------------------- .../app-terminal/app-terminal.component.html | 2 +- 4 files changed, 4 insertions(+), 70 deletions(-) diff --git a/src/api/process-manager.ts b/src/api/process-manager.ts index 42b0ed452..eed4f4834 100644 --- a/src/api/process-manager.ts +++ b/src/api/process-manager.ts @@ -453,7 +453,7 @@ export function stopBuild(buildId: number): Promise { const abstruseUrl = `${config.url}/build/${buildId}`; return setGitHubStatusFailure(gitUrl, abstruseUrl, buildData.repository.access_token); } - }).catch(err => console.error(err)); + }).catch(err => logger.error(err)); } export function restartJob(jobId: number): Promise { @@ -490,7 +490,7 @@ export function restartJob(jobId: number): Promise { } else { return Promise.resolve(); } - }).catch(err => console.error(err)); + }).catch(err => logger.error(err)); } export function restartJobWithSshAndVnc(jobId: number): Promise { @@ -568,7 +568,7 @@ export function queueSetupDockerImage(name: string): Observable { }); } }, err => { - console.error(err); + logger.error(err); }, () => { observer.complete(); }); diff --git a/src/app/components/app-build-details/app-build-details.component.html b/src/app/components/app-build-details/app-build-details.component.html index 370226336..100d11ced 100644 --- a/src/app/components/app-build-details/app-build-details.component.html +++ b/src/app/components/app-build-details/app-build-details.component.html @@ -70,39 +70,6 @@

{{ build?.data?.commits[0]?.message }}{{ totalTime }}

- -
-
-
-
-
- - Show build history - - - Hide build history - -
-
-
-
- {{ run.start_time | date:'dd.MM.yyyy hh:mm:ss' }} -
-
- {{ run.end_time | date:'dd.MM.yyyy hh:mm:ss' }} -
-
- {{ run.status.charAt(0).toUpperCase() + run.status.slice(1) }} - Cancelled -
-
-
-
-
-
diff --git a/src/app/components/app-job/app-job.component.html b/src/app/components/app-job/app-job.component.html index 508bff29b..677723afe 100644 --- a/src/app/components/app-job/app-job.component.html +++ b/src/app/components/app-job/app-job.component.html @@ -89,39 +89,6 @@

{{ job?.build?.data?.commits[0]?.mes -
-
-
-
-
- - Show build history - - - Hide build history - -
-
-
-
- {{ run.start_time | date:'dd.MM.yyyy hh:mm:ss' }} -
-
- {{ run.end_time | date:'dd.MM.yyyy hh:mm:ss' }} -
-
- {{ run.status.charAt(0).toUpperCase() + run.status.slice(1) }} - Cancelled -
-
-
-
-
-
- diff --git a/src/app/components/app-terminal/app-terminal.component.html b/src/app/components/app-terminal/app-terminal.component.html index 5fbd5e9ae..454b10dd9 100644 --- a/src/app/components/app-terminal/app-terminal.component.html +++ b/src/app/components/app-terminal/app-terminal.component.html @@ -1,4 +1,4 @@ -
+