Skip to content

Commit 090ab40

Browse files
committed
UI: Config form: Adding widget to assist the user on filling the properties #4054
1 parent 140fd9e commit 090ab40

File tree

1 file changed

+44
-39
lines changed

1 file changed

+44
-39
lines changed

dcm4chee-arc-ui2/src/app/widgets/dictionary-picker/dictionary-picker.component.ts

+44-39
Original file line numberDiff line numberDiff line change
@@ -57,46 +57,51 @@ export class DictionaryPickerComponent implements OnInit {
5757
break;
5858
case 'dcmProperty':
5959
this.hideDots = true;
60+
const currentPropertiePosition = document.location.pathname.split(".").pop(); //Get the last string after the . from the current URL
6061
const uiConfig = _.get(this.deviceConfiguratorService.device,"dcmDevice.dcmuiConfig[0]");
61-
const dropdown = [
62-
{
63-
key:"IID_PATIENT_URL=[VIEWER_URL]"
64-
},{
65-
key:"IID_STUDY_URL=[VIEWER_URL]"
66-
},{
67-
key:"IID_URL_TARGET=_self"
68-
},{
69-
key:"IID_URL_TARGET=_blank"
70-
},{
71-
key:"MWLAccessionNumberGenerator=[name-of-cd-import-acc-no-id-generator]"
72-
},{
73-
key:"allow-any-hostname=true"
74-
},{
75-
key:"disable-trust-manager=true"
76-
},{
77-
key:"allow-any-hostname=true"
78-
},{
79-
key:"disable-trust-manager=true"
80-
},{
81-
key:"bearer-token=[bearer-token]"
82-
},{
83-
key:"basic-auth=[basic-auth]"
84-
},{
85-
key:"basic-auth=[basic-auth]"
86-
},{
87-
key:"content-type=true"
88-
},{
89-
key:"content-type=false"
90-
},{
91-
key:"chunked=true"
92-
},{
93-
key:"transfer-syntax=[transfer-syntax]"
94-
},{
95-
key:"concurrency=[concurrency]"
96-
}
97-
];
98-
this.dcmTags = dropdown;
99-
this.dcmTagsFiltered = _.clone(dropdown);
62+
if(currentPropertiePosition === "dcmWebApp"){
63+
const dropdown = [
64+
{
65+
key:"IID_PATIENT_URL=[VIEWER_URL]"
66+
},{
67+
key:"IID_STUDY_URL=[VIEWER_URL]"
68+
},{
69+
key:"IID_URL_TARGET=_self"
70+
},{
71+
key:"IID_URL_TARGET=_blank"
72+
},{
73+
key:"MWLAccessionNumberGenerator=[name-of-cd-import-acc-no-id-generator]"
74+
},{
75+
key:"allow-any-hostname=true"
76+
},{
77+
key:"disable-trust-manager=true"
78+
},{
79+
key:"allow-any-hostname=true"
80+
},{
81+
key:"disable-trust-manager=true"
82+
},{
83+
key:"bearer-token=[bearer-token]"
84+
},{
85+
key:"basic-auth=[basic-auth]"
86+
},{
87+
key:"basic-auth=[basic-auth]"
88+
},{
89+
key:"content-type=true"
90+
},{
91+
key:"content-type=false"
92+
},{
93+
key:"chunked=true"
94+
},{
95+
key:"transfer-syntax=[transfer-syntax]"
96+
},{
97+
key:"concurrency=[concurrency]"
98+
},{
99+
key:"WebAppDropdownLabel=[custom_label]"
100+
}
101+
];
102+
this.dcmTags = dropdown;
103+
this.dcmTagsFiltered = _.clone(dropdown);
104+
}
100105

101106
if(_.hasIn(uiConfig,"dcmuiMWLWorklistLabel") && uiConfig.dcmuiMWLWorklistLabel.length > 0){
102107
uiConfig.dcmuiMWLWorklistLabel.forEach(el=>{

0 commit comments

Comments
 (0)