revert to text type for object policies (#234985)

pull/234999/head
Sandeep Somavarapu 2024-12-02 15:46:52 +01:00 committed by GitHub
parent 6285994c71
commit f59439b9a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -157,10 +157,10 @@ class ObjectPolicy extends BasePolicy {
super(PolicyType.StringEnum, name, category, minimumVersion, description, moduleName);
}
renderADMXElements() {
return [`<multiText id="${this.name}" valueName="${this.name}" required="true" />`];
return [`<text id="${this.name}" valueName="${this.name}" required="true" />`];
}
renderADMLPresentationContents() {
return `<multiTextBox refId="${this.name}" />`;
return `<textBox refId="${this.name}"><label>${this.name}:</label></textBox>`;
}
}
class StringEnumPolicy extends BasePolicy {

View File

@ -262,11 +262,11 @@ class ObjectPolicy extends BasePolicy {
}
protected renderADMXElements(): string[] {
return [`<multiText id="${this.name}" valueName="${this.name}" required="true" />`];
return [`<text id="${this.name}" valueName="${this.name}" required="true" />`];
}
renderADMLPresentationContents() {
return `<multiTextBox refId="${this.name}" />`;
return `<textBox refId="${this.name}"><label>${this.name}:</label></textBox>`;
}
}