Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chickdan committed Jan 8, 2025
1 parent 46e1242 commit 8ab7f3a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Swiftfin tvOS/Views/SelectUserView/SelectUserView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ struct SelectUserView: View {
if isEditingUsers {
selectedUsers.toggle(value: user)
} else {
viewModel.send(.signIn(user, pin: ""))
select(user: user)
}
} onDelete: {
selectedUsers.insert(user)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,6 @@ struct UserLocalSecurityView: View {

// frame necessary with bug within BulletedList
BulletedList {

VStack(alignment: .leading, spacing: 5) {
Text(UserAccessPolicy.requireDeviceAuthentication.displayTitle)
.fontWeight(.semibold)

Text(L10n.requireDeviceAuthDescription)
}
.padding(.bottom, 15)

VStack(alignment: .leading, spacing: 5) {
Text(UserAccessPolicy.requirePin.displayTitle)
.fontWeight(.semibold)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ struct UserProfileSettingsView: View {

var body: some View {
List {
// UserProfileImage(
// userID: profileImageViewModel.user.id,
// source: profileImageViewModel.user.profileImageSource(
// client: server.client,
// maxWidth: 120
// )
// )

// TODO: bring reset password to tvOS
// Section {
// ChevronButton(L10n.password)
// .onSelect {
Expand All @@ -53,16 +46,17 @@ struct UserProfileSettingsView: View {
}
}

Section {
// TODO: move under future "Storage" tab
// when downloads implemented
Button(L10n.resetSettings) {
isPresentingConfirmReset = true
}
.foregroundStyle(.red)
} footer: {
Text(L10n.resetSettingsDescription)
}
// TODO: Do we want this option on tvOS?
// Section {
// // TODO: move under future "Storage" tab
// // when downloads implemented
// Button(L10n.resetSettings) {
// isPresentingConfirmReset = true
// }
// .foregroundStyle(.red)
// } footer: {
// Text(L10n.resetSettingsDescription)
// }
}
.confirmationDialog(
L10n.resetSettings,
Expand Down

0 comments on commit 8ab7f3a

Please sign in to comment.