Browse Source

Fix share permission section titles & branded folder image

Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com>
Henrik Storch 3 years ago
parent
commit
cf56fc6fc3

+ 2 - 2
iOSClient/Share/Advanced/NCShareAdvancePermission.swift

@@ -110,9 +110,9 @@ class NCShareAdvancePermission: UITableViewController, NCShareAdvanceFotterDeleg
 
     override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
         if section == 0 {
-            return NSLocalizedString("_advanced_", comment: "")
+            return NSLocalizedString("_permissions_", comment: "")
         } else if section == 1 {
-            return NSLocalizedString("_misc_", comment: "")
+            return NSLocalizedString("_advanced_", comment: "")
         } else { return nil }
     }
 

+ 2 - 2
iOSClient/Share/Advanced/NCShareAdvancePermissionHeader.swift

@@ -36,11 +36,11 @@ class NCShareAdvancePermissionHeader: UIView {
             imageView.isHidden = true
         } else {
             if metadata.directory {
-                imageView.image = UIImage(named: "folder")
+                imageView.image = NCBrandColor.cacheImages.folder
             } else if !metadata.iconName.isEmpty {
                 imageView.image = UIImage(named: metadata.iconName)
             } else {
-                imageView.image = UIImage(named: "file")
+                imageView.image = NCBrandColor.cacheImages.file
             }
         }
         fileName.text = metadata.fileNameView

+ 1 - 1
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -147,7 +147,6 @@
 "_recent_"                  = "Recent";
 "_view_in_folder_"          = "View in folder";
 "_leave_share_"             = "Leave this share";
-"_misc_"                    = "Miscellaneous";
 
 /* Remove a file from a list, don't delete it entirely */
 "_remove_file_"             = "Remove file";
@@ -340,6 +339,7 @@
 "_user_editprofile_"            = "Edit profile";
 "_select_offline_warning_"      = "Making multiple files and folders available offline may take a while and use a lot of memory while doing so.";
 "_advanced_"                    = "Advanced";
+"_permissions_"                 = "Permissions";
 "_disable_files_app_"           = "Disable Files App integration";
 "_disable_files_app_footer_"    = "Do not permit the access of files via the iOS Files application";
 "_trial_"                       = "Trial";