mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
implemented the UI to manage authorized spaces
This commit is contained in:
+9
-1
@@ -19,13 +19,21 @@ struct ManageAuthorizedSpacesScreenViewState: BindableState {
|
||||
authorizedSpacesSelection.selectedIDs != desiredSelectedIDs
|
||||
}
|
||||
|
||||
var isDoneButtonDisabled: Bool {
|
||||
desiredSelectedIDs.isEmpty || !hasChanges
|
||||
}
|
||||
|
||||
init(authorizedSpacesSelection: AuthorizedSpacesSelection) {
|
||||
self.authorizedSpacesSelection = authorizedSpacesSelection
|
||||
desiredSelectedIDs = authorizedSpacesSelection.selectedIDs
|
||||
}
|
||||
}
|
||||
|
||||
enum ManageAuthorizedSpacesScreenViewAction { }
|
||||
enum ManageAuthorizedSpacesScreenViewAction {
|
||||
case cancel
|
||||
case done
|
||||
case toggle(spaceID: String)
|
||||
}
|
||||
|
||||
struct AuthorizedSpacesSelection {
|
||||
let joinedParentSpaces: [SpaceRoomProxyProtocol]
|
||||
|
||||
Reference in New Issue
Block a user