diff --git a/enzevalos_iphone/StudySettings.swift b/enzevalos_iphone/StudySettings.swift index b417f735761336da5db68978e2232bbebbbafffd..e335b092e9b76eac3a83dfe9c67afc0eca805ef3 100644 --- a/enzevalos_iphone/StudySettings.swift +++ b/enzevalos_iphone/StudySettings.swift @@ -53,6 +53,8 @@ class StudySettings { static var securityIndicator: SecurityIndicator = SecurityIndicator.load() as! SecurityIndicator static var invitationsmode: Inviation = Inviation.load() as! Inviation + static var showCategorizedInterface = true + public static var invitationEnabled: Bool { get { return false diff --git a/enzevalos_iphone/SwiftUI/LetterboxApp.swift b/enzevalos_iphone/SwiftUI/LetterboxApp.swift index a3fb72feed3c5bf347551287b66235d91b904956..ac2f6491ab263c9f8e816afa5782821249e9d2c1 100644 --- a/enzevalos_iphone/SwiftUI/LetterboxApp.swift +++ b/enzevalos_iphone/SwiftUI/LetterboxApp.swift @@ -30,12 +30,21 @@ struct LetterboxApp: App { case .GENERATEKEYS: PermissionRequestView() // TODO Wait case .LAUNCHEDBEFORE: - FolderListView() - .environment(\.managedObjectContext, - PersistentDataProvider - .dataProvider - .persistentContainer - .viewContext) + if StudySettings.showCategorizedInterface { + InboxHome(controller: HomeModel()) + //.navigationBarItems(leading: self.folderButton) + .environment(\.managedObjectContext, PersistentDataProvider + .dataProvider + .persistentContainer + .viewContext) + }else{ + FolderListView() + .environment(\.managedObjectContext, + PersistentDataProvider + .dataProvider + .persistentContainer + .viewContext) + } } } } diff --git a/enzevalos_iphone/en.lproj/Localizable.strings b/enzevalos_iphone/en.lproj/Localizable.strings index 85817114fdbbc7f0528881bf7d0902d2b7abcde0..7f6e734643262df186c85e1740d78258696b767b 100644 --- a/enzevalos_iphone/en.lproj/Localizable.strings +++ b/enzevalos_iphone/en.lproj/Localizable.strings @@ -454,3 +454,36 @@ "ReadView.PrefilledMail.AskForResend.Body" = "Hey, \nI could not decrypt your last email because I do not have the secret key. Can you resend the email again and encrypt the email for the attachted secret key? Thank you and best regards"; + + + +"Home"="Home"; +//Mark: Categories + + //Category-names + "Category.OldInbox.name" = "Classic Inbox"; + "Category.Files.name" = "Files"; + "Category.Chats.name" = "Chats and People"; + "Category.Screener.name" = "Unsorted"; + +"Classic Inbox"="Classic Inbox"; + //other + "Filename"="File name"; + + "Open Email"="open this mail"; + +//Sort +"Sort By"="Sort by: "; + "sort.recent"="recent"; + "sort.static"="static"; + + +"open mail in standard view"="open mail"; + +//Options + +"Mark as unread"="mark as unread"; +"Info"="Info"; +"Reply all"="reply all"; +"Reply"="reply"; +"Forward"="forward";