Addressing review comments.
This commit is contained in:
parent
c628616e4a
commit
b6ac373e0f
@ -46,14 +46,12 @@ import VDS
|
|||||||
self.accessibilityIdentifier = accessibilityIdentifier
|
self.accessibilityIdentifier = accessibilityIdentifier
|
||||||
}
|
}
|
||||||
|
|
||||||
if let closeButton = viewModel.closeButton {
|
if var closeButton = viewModel.closeButton {
|
||||||
onCloseClick = { [weak self] _ in
|
onCloseClick = { [weak self] _ in
|
||||||
guard let self else { return }
|
guard let self else { return }
|
||||||
if closeButton.action.actionType == ActionNoopModel.identifier {
|
if closeButton.action.actionType == ActionNoopModel.identifier {
|
||||||
if var dismissAction = self.viewModel.closeButton {
|
closeButton.action = ActionDismissNotificationModel()
|
||||||
dismissAction.action = ActionDismissNotificationModel()
|
self.executeAction(model: closeButton, delegateObject: self.delegateObject, additionalData: self.additionalData)
|
||||||
self.executeAction(model: dismissAction, delegateObject: self.delegateObject, additionalData: self.additionalData)
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
self.executeAction(model: closeButton, delegateObject: self.delegateObject, additionalData: self.additionalData)
|
self.executeAction(model: closeButton, delegateObject: self.delegateObject, additionalData: self.additionalData)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user