Commit 5ae55eff authored by AllForNothing's avatar AllForNothing
Browse files

Fix UI issues found on round-2 testing day


Signed-off-by: default avatarAllForNothing <sshijun@vmware.com>
parent 2ab4fbef
......@@ -26,18 +26,21 @@
<clr-dropdown>
<button type="button" class="btn btn-secondary" (click)="editInstance()"
[disabled]="!(selectedRow && selectedRow.length === 1)">
<clr-icon shape="edit" size="16"></clr-icon>&nbsp;{{'DISTRIBUTION.EDIT_ACTION' | translate}}
<clr-icon shape="edit" size="16"></clr-icon>&nbsp;
<span id="distribution-edit">{{'DISTRIBUTION.EDIT_ACTION' | translate}}</span>
</button>
<button type="button" class="btn btn-secondary" (click)="operateInstances('enable', selectedRow)"
[disabled]="!(selectedRow && selectedRow.length === 1 && !selectedRow[0].enabled)">
<clr-icon shape="connect" size="16"></clr-icon>&nbsp;{{'DISTRIBUTION.ENABLE_ACTION' | translate}}
<clr-icon shape="connect" size="16"></clr-icon>&nbsp;
<span id="distribution-enable">{{'DISTRIBUTION.ENABLE_ACTION' | translate}}</span>
</button>
<button
type="button"
class="btn btn-secondary"
(click)="operateInstances('disable', selectedRow)"
[disabled]="!(selectedRow && selectedRow.length === 1 && selectedRow[0].enabled)">
<clr-icon shape="disconnect" size="16"></clr-icon>&nbsp;{{'DISTRIBUTION.DISABLE_ACTION' | translate}}
<clr-icon shape="disconnect" size="16"></clr-icon>&nbsp;
<span id="distribution-disable">{{'DISTRIBUTION.DISABLE_ACTION' | translate}}</span>
</button>
<div class="dropdown-divider"></div>
<button
......@@ -45,7 +48,8 @@
class="btn btn-secondary"
(click)="operateInstances('delete', selectedRow)"
[disabled]="selectedRow.length < 1">
<clr-icon shape="window-close" size="16"></clr-icon>&nbsp;{{'DISTRIBUTION.DELETE_ACTION' | translate}}
<clr-icon shape="window-close" size="16"></clr-icon>&nbsp;
<span id="distribution-delete">{{'DISTRIBUTION.DELETE_ACTION' | translate}}</span>
</button>
</clr-dropdown>
</clr-dropdown-menu>
......
......@@ -101,6 +101,6 @@
</div>
<div class="modal-footer">
<button id="new-project-cancel" type="button" class="btn btn-outline" (click)="onCancel()">{{'BUTTON.CANCEL' | translate}}</button>
<button id="new-project-ok" type="button" class="btn btn-primary" [disabled]="!isValid" (click)="onSubmit()">{{'BUTTON.OK' | translate}}</button>
<button id="new-project-ok" type="button" class="btn btn-primary" [disabled]="!isValid || (enableProxyCache && !project.registry_id)" (click)="onSubmit()">{{'BUTTON.OK' | translate}}</button>
</div>
</clr-modal>
......@@ -287,7 +287,7 @@ export class PolicyComponent implements OnInit, OnDestroy {
description: this.addP2pPolicyComponent.policy.description,
repo: this.addP2pPolicyComponent.repos,
tag: this.addP2pPolicyComponent.tags,
onlySignedImages: this.addP2pPolicyComponent.onlySignedImages,
onlySignedImages: this.addP2pPolicyComponent.enableContentTrust,
severity: this.addP2pPolicyComponent.severity,
label: this.addP2pPolicyComponent.labels,
triggerType: this.addP2pPolicyComponent.triggerType
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment