mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
implemented the UI to manage authorized spaces
This commit is contained in:
+13
@@ -26,5 +26,18 @@ class ManageAuthorizedSpacesScreenViewModel: ManageAuthorizedSpacesScreenViewMod
|
||||
|
||||
override func process(viewAction: ManageAuthorizedSpacesScreenViewAction) {
|
||||
MXLog.info("View model: received view action: \(viewAction)")
|
||||
switch viewAction {
|
||||
case .cancel:
|
||||
actionsSubject.send(.dismiss)
|
||||
case .done:
|
||||
// TODO: Implement
|
||||
break
|
||||
case .toggle(let spaceID):
|
||||
if state.desiredSelectedIDs.contains(spaceID) {
|
||||
state.desiredSelectedIDs.remove(spaceID)
|
||||
} else {
|
||||
state.desiredSelectedIDs.insert(spaceID)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user