refactored

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-08-21 16:07:10 -05:00
parent 60cefc57a6
commit de67fd7fb6
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
import MVMCore import MVMCore
import VDS import VDS
@objcMembers public class RadioBoxModel: FormFieldModel { public class RadioBoxModel: FormFieldModel {
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Properties // MARK: - Properties
//-------------------------------------------------- //--------------------------------------------------

View File

@ -73,7 +73,7 @@ import VDS
extension Array where Element == RadioBoxModel { extension Array where Element == RadioBoxModel {
internal func convertToVDSRadioBoxModel(surface: Surface) -> [RadioBoxGroup.RadioBoxItemModel] { internal func convertToVDSRadioBoxModel(surface: Surface) -> [RadioBoxGroup.RadioBoxItemModel] {
compactMap({ item in compactMap({ item in
var radioBox = RadioBoxGroup.RadioBoxItemModel() var radioBox = RadioBoxGroup.RadioBoxItemModel()
radioBox.text = item.text radioBox.text = item.text
radioBox.subText = item.subText radioBox.subText = item.subText
@ -81,7 +81,7 @@ extension Array where Element == RadioBoxModel {
radioBox.surface = surface radioBox.surface = surface
radioBox.selected = item.selected radioBox.selected = item.selected
radioBox.strikethrough = item.strikethrough radioBox.strikethrough = item.strikethrough
radioBox.disabled = !(item.enabled && !item.readOnly) radioBox.disabled = !item.isEnabled
return radioBox return radioBox
}) })
} }