Merge pull request #5537 from zhoumeina/pr/fix_helm_chart_log

Fix helm chart getImageLink was deleted by accident
This commit is contained in:
Mia ZHOU 2018-08-06 18:50:36 +08:00 committed by GitHub
commit 9bcf33212d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -290,6 +290,14 @@ export class ChartVersionComponent implements OnInit {
}
}
getImgLink(v: HelmChartVersion) {
if (v.icon) {
return v.icon;
} else {
return DefaultHelmIcon;
}
}
getDefaultIcon(v: HelmChartVersion) {
v.icon = this.chartDefaultIcon;

View File

@ -26,12 +26,10 @@ import { httpStatusCode, AlertType } from './shared.const';
* @returns {string}
*/
export const errorHandler = function (error: any): string {
if (!error) {
return "UNKNOWN_ERROR";
}
if (!(error.statusCode || error.status)) {
let errorObj = error.json();
if (errorObj && errorObj.error) {
// treat as string message
return '' + error;
return errorObj.error;
} else {
switch (error.statusCode || error.status) {
case 400: