Skip to content

Commit

Permalink
chore: run format
Browse files Browse the repository at this point in the history
  • Loading branch information
AnurosePrakash committed Jul 18, 2023
1 parent 5887165 commit 9ab8ca5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
8 changes: 4 additions & 4 deletions fake-backend/json/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"http://w3id.org/mds#geoReferenceMethod": "my-geo-reference-method",
"http://w3id.org/mds#transportMode": "Rail",
"asset:prop:some-unsupported-property": "test",
"asset:prop:datasource:http:hints:proxyBody":"true",
"asset:prop:datasource:http:hints:proxyMethod":"true",
"asset:prop:datasource:http:hints:proxyPath":"false",
"asset:prop:datasource:http:hints:proxyQueryParams":"false"
"asset:prop:datasource:http:hints:proxyBody": "true",
"asset:prop:datasource:http:hints:proxyMethod": "true",
"asset:prop:datasource:http:hints:proxyPath": "false",
"asset:prop:datasource:http:hints:proxyQueryParams": "false"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import {Policy} from '../../../core/services/api/legacy-managent-api-client';
import {AssetProperties} from '../../../core/services/asset-properties';
import {Asset} from '../../../core/services/models/asset';
import {BrokerDataOffer} from '../../../routes/broker-ui/catalog-page/catalog-page/mapping/broker-data-offer';
import {ParameterizationDetailDialogComponent} from '../../../routes/connector-ui/asset-page/parameterization-detail-dialog/parameterization-detail-dialog.component';
import {
ParameterizationDetailDialogComponent
} from '../../../routes/connector-ui/asset-page/parameterization-detail-dialog/parameterization-detail-dialog.component';
import {
ContractAgreementCardMapped
} from '../../../routes/connector-ui/contract-agreement-page/contract-agreement-cards/contract-agreement-card-mapped';
ParameterizationDetailDialogData,
assetParameterizationDetail,
} from '../../../routes/connector-ui/asset-page/parameterization-detail-dialog/parameterization-detail-dialog.data';
import {ContractAgreementCardMapped} from '../../../routes/connector-ui/contract-agreement-page/contract-agreement-cards/contract-agreement-card-mapped';
import {JsonDialogComponent} from '../../json-dialog/json-dialog/json-dialog.component';
import {JsonDialogData} from '../../json-dialog/json-dialog/json-dialog.data';
import {PropertyGridGroup} from '../../property-grid/property-grid-group/property-grid-group';
Expand All @@ -23,20 +23,14 @@ import {
getOnlineStatusIcon,
} from '../icon-with-online-status/online-status-utils';
import {getLegacyPolicy} from './policy-utils';
import {
assetParameterizationDetail,
ParameterizationDetailDialogData
} from "../../../routes/connector-ui/asset-page/parameterization-detail-dialog/parameterization-detail-dialog.data";


@Injectable()
export class AssetPropertyGridGroupBuilder {
constructor(
private matDialog: MatDialog,
private activeFeatureSet: ActiveFeatureSet,
private propertyGridUtils: PropertyGridFieldService,
) {
}
) {}

buildAssetPropertiesGroup(
asset: Asset,
Expand Down Expand Up @@ -105,12 +99,13 @@ export class AssetPropertyGridGroupBuilder {
asset.httpProxyPath != null ||
asset.httpProxyQueryParams != null
) {

let showDetailsObject = {
httpProxyMethod: asset.httpProxyMethod ? "Enabled" : "Disabled",
httpProxyBody: asset.httpProxyBody ? "Enabled" : "Disabled",
httpProxyPath: asset.httpProxyPath ? "Enabled" : "Disabled",
httpProxiedQueryParams: asset.httpProxyQueryParams ? "Enabled" : "Disabled"
httpProxyMethod: asset.httpProxyMethod ? 'Enabled' : 'Disabled',
httpProxyBody: asset.httpProxyBody ? 'Enabled' : 'Disabled',
httpProxyPath: asset.httpProxyPath ? 'Enabled' : 'Disabled',
httpProxiedQueryParams: asset.httpProxyQueryParams
? 'Enabled'
: 'Disabled',
};
fields.push({
icon: 'list',
Expand Down Expand Up @@ -214,7 +209,11 @@ export class AssetPropertyGridGroupBuilder {
this.matDialog.open(JsonDialogComponent, {data});
}

onShowDetailsClick(title: string, subtitle: string, details: assetParameterizationDetail) {
onShowDetailsClick(
title: string,
subtitle: string,
details: assetParameterizationDetail,
) {
const data: ParameterizationDetailDialogData = {
title,
subtitle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {ParameterizationDetailDialogData} from './parameterization-detail-dialog
selector: 'app-parameterization-detail-dialog',
templateUrl: './parameterization-detail-dialog.component.html',
})
export class ParameterizationDetailDialogComponent{
export class ParameterizationDetailDialogComponent {
constructor(
@Inject(MAT_DIALOG_DATA) public data: ParameterizationDetailDialogData,
) {}
Expand Down

0 comments on commit 9ab8ca5

Please sign in to comment.