Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion RIADigiDoc/UI/Component/Container/Crypto/EncryptView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ struct EncryptView: View {
private var containerExtension: String {
URL(fileURLWithPath: viewModel.containerName).pathExtension
}

private var containerIcon: String {
viewModel.isContainerDecrypted
? "ic_m3_encrypted_off_48pt_wght400"
: (viewModel.isContainerEncrypted
? "ic_m3_encrypted_48pt_wght400"
: "ic_m3_folder_48pt_wght400")
}

@State private var containerLoadingTask: Task<Void, Never>?

Expand Down Expand Up @@ -196,7 +204,7 @@ struct EncryptView: View {
ScrollView {
VStack {
ContainerNameView(
icon: "ic_m3_stylus_note_48pt_wght400",
icon: containerIcon,
containerNameTitle: containerNameTitle,
name: $viewModel.containerName,
isEditContainerButtonShown: viewModel.isEditButtonShown,
Expand Down
Loading