diff --git a/src/portal/lib/src/create-edit-endpoint/create-edit-endpoint.component.spec.ts b/src/portal/lib/src/create-edit-endpoint/create-edit-endpoint.component.spec.ts index 1f9ab77fd..a68e01b00 100644 --- a/src/portal/lib/src/create-edit-endpoint/create-edit-endpoint.component.spec.ts +++ b/src/portal/lib/src/create-edit-endpoint/create-edit-endpoint.component.spec.ts @@ -21,12 +21,12 @@ import { IServiceConfig, SERVICE_CONFIG } from "../service.config"; describe("CreateEditEndpointComponent (inline template)", () => { let mockData: Endpoint = { id: 1, - endpoint: "https://10.117.4.151", + url: "https://10.117.4.151", name: "target_01", username: "admin", password: "", insecure: false, - type: 0 + type: "harbor" }; let comp: CreateEditEndpointComponent; diff --git a/src/portal/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts b/src/portal/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts index b23d991b6..760e40cdb 100644 --- a/src/portal/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts +++ b/src/portal/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts @@ -98,12 +98,12 @@ export class CreateEditEndpointComponent initEndpoint(): Endpoint { return { - endpoint: "", + url: "", name: "", username: "", password: "", insecure: false, - type: 0 + type: "" }; } diff --git a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html index 12c1ce04a..0952b5e45 100644 --- a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html +++ b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html @@ -2,8 +2,8 @@