CXTDT-552665 Fixing top notification close button
This commit is contained in:
parent
758a7f686b
commit
91cee993b3
@ -49,7 +49,15 @@ import VDS
|
||||
if let closeButton = viewModel.closeButton {
|
||||
onCloseClick = { [weak self] _ in
|
||||
guard let self else { return }
|
||||
self.executeAction(model: closeButton, delegateObject: self.delegateObject, additionalData: self.additionalData) }
|
||||
if closeButton.action.actionType == ActionNoopModel.identifier {
|
||||
if var dismissAction = self.viewModel.closeButton {
|
||||
dismissAction.action = ActionDismissNotificationModel()
|
||||
self.executeAction(model: dismissAction, delegateObject: self.delegateObject, additionalData: self.additionalData)
|
||||
}
|
||||
} else {
|
||||
self.executeAction(model: closeButton, delegateObject: self.delegateObject, additionalData: self.additionalData)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
hideCloseButton = viewModel.closeButton == nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user