Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tobihagemann committed Aug 20, 2024
1 parent 85bdb86 commit 6c60058
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Cryptomator/VaultDetail/VaultDetailViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,13 @@ class VaultDetailViewModel: VaultDetailViewModelProtocol {

private lazy var sections: [VaultDetailSection] = {
var sections: [VaultDetailSection] = [.vaultInfoSection, .lockingSection]

if vaultIsEligibleToMove() {
sections.append(.moveVaultSection)
}

if vaultInfo.vaultConfigType != .hub {
if vaultInfo.vaultConfigType == .masterkeyFile {
sections.append(.changeVaultPasswordSection)
}

// Ensure removeVaultSection is always the last element
sections.append(.removeVaultSection)

return sections
}()

Expand Down

0 comments on commit 6c60058

Please sign in to comment.