diff --git a/Cryptomator/Settings/SettingsViewModel.swift b/Cryptomator/Settings/SettingsViewModel.swift index d761538c1..eb3431025 100644 --- a/Cryptomator/Settings/SettingsViewModel.swift +++ b/Cryptomator/Settings/SettingsViewModel.swift @@ -71,12 +71,20 @@ class SettingsViewModel: TableViewModel { } private var aboutSectionElements: [TableViewCellViewModel] { - var elements = [ButtonCellViewModel.createDisclosureButton(action: SettingsButtonAction.showAbout, title: LocalizedString.getValue("settings.aboutCryptomator"))] + var elements: [TableViewCellViewModel] = [ButtonCellViewModel.createDisclosureButton(action: SettingsButtonAction.showAbout, title: LocalizedString.getValue("settings.aboutCryptomator"))] + if cryptomatorSettings.hasRunningSubscription { - elements.append(.init(action: .showManageSubscriptions, title: LocalizedString.getValue("settings.manageSubscriptions"))) - elements.append(.init(action: .restorePurchase, title: LocalizedString.getValue("purchase.restorePurchase.button"))) - } else if !cryptomatorSettings.fullVersionUnlocked { + elements.append(ButtonCellViewModel(action: .showManageSubscriptions, title: LocalizedString.getValue("settings.manageSubscriptions"))) + } else if cryptomatorSettings.fullVersionUnlocked { + let statusCell = BindableTableViewCellViewModel( + title: LocalizedString.getValue("settings.fullVersionStatus"), + selectionStyle: .none, + accessoryType: .checkmark + ) + elements.append(statusCell) + } else { elements.append(ButtonCellViewModel.createDisclosureButton(action: SettingsButtonAction.showUnlockFullVersion, title: LocalizedString.getValue("settings.unlockFullVersion"))) + elements.append(ButtonCellViewModel(action: .restorePurchase, title: LocalizedString.getValue("purchase.restorePurchase.button"))) } return elements } diff --git a/SharedResources/en.lproj/Localizable.strings b/SharedResources/en.lproj/Localizable.strings index ea432fa88..ea1998962 100644 --- a/SharedResources/en.lproj/Localizable.strings +++ b/SharedResources/en.lproj/Localizable.strings @@ -213,6 +213,7 @@ "settings.sendLogFile" = "Send Log File"; "settings.shortcutsGuide" = "Shortcuts Guide"; "settings.unlockFullVersion" = "Unlock Full Version"; +"settings.fullVersionStatus" = "Full Version"; "sharePoint.enterURL.title" = "Enter SharePoint URL"; "sharePoint.enterURL.placeholder" = "SharePoint Site URL";