Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Jul 3, 2024
1 parent 7ac3bef commit 6197338
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions iOSClient/Account Settings/NCAccountSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,28 +155,30 @@ struct NCAccountSettingsView: View {
}
///
/// User Status
Button(action: {
showUserStatus = true
}, label: {
HStack {
Image(systemName: "moon.fill")
.resizable()
.scaledToFit()
.font(Font.system(.body).weight(.light))
.frame(width: 20, height: 20)
.foregroundStyle(Color(NCBrandColor.shared.iconImageColor))
Text(NSLocalizedString("_set_user_status_", comment: ""))
.lineLimit(1)
.truncationMode(.middle)
.foregroundStyle(Color(NCBrandColor.shared.textColor))
.padding(EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 20))
if NCGlobal.shared.capabilityUserStatusEnabled {
Button(action: {
showUserStatus = true
}, label: {
HStack {
Image(systemName: "moon.fill")
.resizable()
.scaledToFit()
.font(Font.system(.body).weight(.light))
.frame(width: 20, height: 20)
.foregroundStyle(Color(NCBrandColor.shared.iconImageColor))
Text(NSLocalizedString("_set_user_status_", comment: ""))
.lineLimit(1)
.truncationMode(.middle)
.foregroundStyle(Color(NCBrandColor.shared.textColor))
.padding(EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 20))
}
.font(.system(size: 14))
})
.sheet(isPresented: $showUserStatus) {
UserStatusView(showUserStatus: $showUserStatus)
}
.font(.system(size: 14))
})
.sheet(isPresented: $showUserStatus) {
UserStatusView(showUserStatus: $showUserStatus)
.onChange(of: showUserStatus) { _ in }
}
.onChange(of: showUserStatus) { _ in }
///
/// Certificate server
Button(action: {
Expand Down

0 comments on commit 6197338

Please sign in to comment.