Skip to content

Commit 2d04c57

Browse files
committed
remove copy field on top of artifact-datagrid
Signed-off-by: bupd <[email protected]>
1 parent b0bab10 commit 2d04c57

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,6 @@
180180
</clr-dropdown>
181181
</div>
182182
<div class="right-pos">
183-
<app-pull-command
184-
[registryUrl]="registryUrl"
185-
[projectName]="projectName"
186-
[repoName]="repoName"
187-
[isTopModel]="true"
188-
class="mr-1"></app-pull-command>
189-
190183
<app-artifact-filter
191184
[withDivider]="true"
192185
(filterEvent)="filterEvent($event)"

src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/pull-command/pull-command.component.html

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
<div *ngIf="isTopModel" class="form-group">
2-
<hbr-copy-input
3-
#copyInputComponent
4-
(onCopySuccess)="onCpSuccess(getPullCommandForTopModel())"
5-
inputSize="30"
6-
headerTitle=""
7-
defaultValue="{{ getPullCommandForTopModel() }}"></hbr-copy-input>
8-
</div>
9-
10-
<clr-dropdown *ngIf="!isTopModel && !isTagMode">
1+
<clr-dropdown *ngIf="!isTagMode">
112
<hbr-copy-input
123
*ngIf="isImage(artifact)"
134
[title]="getPullCommandForRuntimeByDigest(artifact)"
@@ -42,7 +33,7 @@
4233

4334
<clr-dropdown
4435
class="mr-1"
45-
*ngIf="isTagMode && !isTopModel"
36+
*ngIf="isTagMode"
4637
[disabled]="!hasPullCommandForTag(artifact)">
4738
<hbr-copy-input
4839
*ngIf="isImage(artifact)"

src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/pull-command/pull-command.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import { TranslateService } from '@ngx-translate/core';
1919
styleUrls: ['./pull-command.component.scss'],
2020
})
2121
export class PullCommandComponent {
22-
@Input()
23-
isTopModel: boolean = false; // TopModel is for tab top component,
2422
@Input()
2523
isTagMode: boolean = false; // tagMode is for tag list datagrid,
2624
@Input()

0 commit comments

Comments
 (0)