Marino Faggiana 6 年之前
父節點
當前提交
f83c5fe137

+ 2 - 0
iOSClient/Main/Create cloud/NCCreateFormUploadRichdocuments.swift

@@ -32,6 +32,7 @@ class NCCreateFormUploadRichdocuments: XLFormViewController, NCSelectDelegate, U
     var fileNameFolder = ""
     var fileName = ""
     var fileNameExtension = ""
+    var titleForm = ""
     var listOfTemplate = [NCRichDocumentTemplate]()
     var selectTemplate: NCRichDocumentTemplate?
     
@@ -56,6 +57,7 @@ class NCCreateFormUploadRichdocuments: XLFormViewController, NCSelectDelegate, U
             fileNameFolder = (serverUrl as NSString).lastPathComponent
         }
         
+        self.title = titleForm
         self.initializeForm()
     
         self.tableView.separatorStyle = UITableViewCell.SeparatorStyle.none

+ 1 - 0
iOSClient/Main/Create cloud/NCCreateMenuAdd.swift

@@ -104,6 +104,7 @@ class NCCreateMenuAdd: NSObject {
                 let viewController = (navigationController as! UINavigationController).topViewController as! NCCreateFormUploadRichdocuments
                 viewController.typeTemplate = k_richdocument_document
                 viewController.serverUrl = self.appDelegate.activeMain.serverUrl
+                viewController.titleForm = NSLocalizedString("_create_new_document_", comment: "")
                 
                 self.appDelegate.window.rootViewController?.present(navigationController, animated: true, completion: nil)
             }