Skip to content

Commit

Permalink
resolve review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Stephanie <[email protected]>
  • Loading branch information
yangcao77 committed Dec 2, 2021
1 parent c7dd137 commit 1398b63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const normalizeDevfile = (devfileSamples: DevfileSample[], t: TFunction): Catalo
const normalizedDevfileSamples = devfileSamples?.map((sample) => {
const { name: uid, displayName, description, tags, git, icon } = sample;
const gitRepoUrl = Object.values(git.remotes)[0];
const iconUrl = icon || '';
const href = `/import?importType=devfile&devfileName=${uid}&gitRepo=${gitRepoUrl}`;
const createLabel = t('devconsole~Create Application');
const type = 'Devfile';
Expand Down Expand Up @@ -41,7 +40,7 @@ const normalizeDevfile = (devfileSamples: DevfileSample[], t: TFunction): Catalo
label: createLabel,
href,
},
icon: { url: iconUrl },
icon: { url: icon },
details: {
properties: detailsProperties,
descriptions: detailsDescriptions,
Expand Down
8 changes: 8 additions & 0 deletions vendor/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
reviewers:
- florkbr
- jhadvig
approvers:
- florkbr
labels:
- component/backend
- kind/dependency-change

0 comments on commit 1398b63

Please sign in to comment.