mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-22 23:51:27 +01:00
fix 2912 #2938 about save button in vul tag and signed icon
This commit is contained in:
parent
6f8f765358
commit
cd1077fa43
@ -40,8 +40,8 @@ export const TAG_TEMPLATE = `
|
||||
<hbr-vulnerability-bar [repoName]="repoName" [tagId]="t.name" [summary]="t.scan_overview"></hbr-vulnerability-bar>
|
||||
</clr-dg-cell>
|
||||
<clr-dg-cell style="width: 80px;" *ngIf="withNotary" [ngSwitch]="t.signature !== null">
|
||||
<clr-icon shape="check" *ngSwitchCase="true" style="color: #1D5100;"></clr-icon>
|
||||
<clr-icon shape="close" *ngSwitchCase="false" style="color: #C92100;"></clr-icon>
|
||||
<clr-icon shape="check-circle" *ngSwitchCase="true" size="20" style="color: #1D5100;"></clr-icon>
|
||||
<clr-icon shape="times-circle" *ngSwitchCase="false" size="16" style="color: #C92100;"></clr-icon>
|
||||
<a href="javascript:void(0)" *ngSwitchDefault role="tooltip" aria-haspopup="true" class="tooltip tooltip-top-right">
|
||||
<clr-icon shape="help" style="color: #565656;" size="16"></clr-icon>
|
||||
<span class="tooltip-content">{{'REPOSITORY.NOTARY_IS_UNDETERMINED' | translate}}</span>
|
||||
|
@ -434,7 +434,6 @@ export class ConfigurationComponent implements OnInit, OnDestroy {
|
||||
if (!this.allConfig || !this.originalCopy) {
|
||||
return changes;
|
||||
}
|
||||
|
||||
for (let prop in this.allConfig) {
|
||||
let field = this.originalCopy[prop];
|
||||
if (field && field.editable) {
|
||||
@ -500,7 +499,8 @@ export class ConfigurationComponent implements OnInit, OnDestroy {
|
||||
if (!this.isEmpty(changes)) {
|
||||
for (let prop in changes) {
|
||||
if (this.originalCopy[prop]) {
|
||||
this.allConfig[prop] = Object.assign({}, this.originalCopy[prop]);
|
||||
this.allConfig[prop] = this.clone(this.originalCopy[prop]);
|
||||
//this.allConfig[prop] = Object.assign({}, this.originalCopy[prop]);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user