Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CSAN
Csan
Commits
5ae55eff
Commit
5ae55eff
authored
Aug 24, 2020
by
AllForNothing
Browse files
Fix UI issues found on round-2 testing day
Signed-off-by:
AllForNothing
<
sshijun@vmware.com
>
parent
2ab4fbef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
src/portal/src/app/distribution/distribution-instances/distribution-instances.component.html
...tribution-instances/distribution-instances.component.html
+8
-4
src/portal/src/app/project/create-project/create-project.component.html
.../app/project/create-project/create-project.component.html
+1
-1
src/portal/src/app/project/p2p-provider/policy/policy.component.ts
...l/src/app/project/p2p-provider/policy/policy.component.ts
+1
-1
No files found.
src/portal/src/app/distribution/distribution-instances/distribution-instances.component.html
View file @
5ae55eff
...
...
@@ -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>
{{'DISTRIBUTION.EDIT_ACTION' | translate}}
<clr-icon
shape=
"edit"
size=
"16"
></clr-icon>
<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>
{{'DISTRIBUTION.ENABLE_ACTION' | translate}}
<clr-icon
shape=
"connect"
size=
"16"
></clr-icon>
<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>
{{'DISTRIBUTION.DISABLE_ACTION' | translate}}
<clr-icon
shape=
"disconnect"
size=
"16"
></clr-icon>
<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>
{{'DISTRIBUTION.DELETE_ACTION' | translate}}
<clr-icon
shape=
"window-close"
size=
"16"
></clr-icon>
<span
id=
"distribution-delete"
>
{{'DISTRIBUTION.DELETE_ACTION' | translate}}
</span>
</button>
</clr-dropdown>
</clr-dropdown-menu>
...
...
src/portal/src/app/project/create-project/create-project.component.html
View file @
5ae55eff
...
...
@@ -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>
src/portal/src/app/project/p2p-provider/policy/policy.component.ts
View file @
5ae55eff
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment