mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-17 04:11:24 +01:00
Fix Replication Rule Ping target issue about #3770
This commit is contained in:
parent
bcb74dde83
commit
f179e09cd0
@ -262,10 +262,11 @@ export class CreateEditEndpointComponent implements AfterViewChecked, OnDestroy
|
|||||||
delete payload[prop];
|
delete payload[prop];
|
||||||
}
|
}
|
||||||
let changes: {[key: string]: any} = this.getChanges();
|
let changes: {[key: string]: any} = this.getChanges();
|
||||||
let changekeys: {[key: string]: any} = Object.keys(this.getChanges());
|
|
||||||
if (isEmptyObject(changes)) {
|
if (isEmptyObject(changes)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
let changekeys: {[key: string]: any} = Object.keys(changes);
|
||||||
|
|
||||||
changekeys.forEach((key: string) => {
|
changekeys.forEach((key: string) => {
|
||||||
payload[key] = changes[key];
|
payload[key] = changes[key];
|
||||||
});
|
});
|
||||||
|
@ -74,7 +74,7 @@ export const CREATE_EDIT_RULE_TEMPLATE: string = `
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="destination_insecure" class="col-md-4 form-group-label-override">{{'CONFIG.VERIFY_REMOTE_CERT' | translate }}</label>
|
<label for="destination_insecure" class="col-md-4 form-group-label-override">{{'CONFIG.VERIFY_REMOTE_CERT' | translate }}</label>
|
||||||
<clr-checkbox #insecure class="col-md-8" name="insecure" id="destination_insecure" [clrDisabled]="testOngoing" [clrChecked]="!createEditRule.insecure" [clrDisabled]="readonly || !isCreateEndpoint" (clrCheckedChange)="setInsecureValue($event)">
|
<clr-checkbox #insecure class="col-md-8" name="insecure" id="destination_insecure" [clrChecked]="!createEditRule.insecure" [clrDisabled]="readonly || !isCreateEndpoint || testOngoing" (clrCheckedChange)="setInsecureValue($event)">
|
||||||
<a href="javascript:void(0)" role="tooltip" aria-haspopup="true" class="tooltip tooltip-top-right" style="top:-7px;">
|
<a href="javascript:void(0)" role="tooltip" aria-haspopup="true" class="tooltip tooltip-top-right" style="top:-7px;">
|
||||||
<clr-icon shape="info-circle" class="info-tips-icon" size="24"></clr-icon>
|
<clr-icon shape="info-circle" class="info-tips-icon" size="24"></clr-icon>
|
||||||
<span class="tooltip-content">{{'CONFIG.TOOLTIP.VERIFY_REMOTE_CERT' | translate}}</span>
|
<span class="tooltip-content">{{'CONFIG.TOOLTIP.VERIFY_REMOTE_CERT' | translate}}</span>
|
||||||
|
@ -424,6 +424,9 @@ export class CreateEditRuleComponent implements AfterViewChecked {
|
|||||||
pingTarget.password = this.createEditRule.password;
|
pingTarget.password = this.createEditRule.password;
|
||||||
pingTarget.insecure = this.createEditRule.insecure;
|
pingTarget.insecure = this.createEditRule.insecure;
|
||||||
} else {
|
} else {
|
||||||
|
for (let prop in pingTarget) {
|
||||||
|
delete pingTarget[prop];
|
||||||
|
}
|
||||||
pingTarget.id = this.createEditRule.endpointId;
|
pingTarget.id = this.createEditRule.endpointId;
|
||||||
}
|
}
|
||||||
toPromise<Endpoint>(this.endpointService
|
toPromise<Endpoint>(this.endpointService
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
"clarity-icons": "^0.9.8",
|
"clarity-icons": "^0.9.8",
|
||||||
"clarity-ui": "^0.9.8",
|
"clarity-ui": "^0.9.8",
|
||||||
"core-js": "^2.4.1",
|
"core-js": "^2.4.1",
|
||||||
"harbor-ui": "0.5.16",
|
"harbor-ui": "0.5.27",
|
||||||
"intl": "^1.2.5",
|
"intl": "^1.2.5",
|
||||||
"mutationobserver-shim": "^0.3.2",
|
"mutationobserver-shim": "^0.3.2",
|
||||||
"ngx-cookie": "^1.0.0",
|
"ngx-cookie": "^1.0.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user