|
@@ -42,8 +42,12 @@ class NCFileViewInFolder: NCCollectionViewCommon {
|
|
|
|
|
|
override func viewWillAppear(_ animated: Bool) {
|
|
|
|
|
|
- self.navigationItem.title = CCUtility.getLastPath(fromServerUrl: serverUrl, urlBase: appDelegate.urlBase)
|
|
|
-
|
|
|
+ if serverUrl == NCUtility.shared.getHomeServer(urlBase: appDelegate.urlBase, account: appDelegate.account) {
|
|
|
+ self.navigationItem.title = NCBrandOptions.sharedInstance.brand
|
|
|
+ } else {
|
|
|
+ self.navigationItem.title = CCUtility.getLastPath(fromServerUrl: serverUrl, urlBase: appDelegate.urlBase)
|
|
|
+ }
|
|
|
+
|
|
|
(layout, _, _, groupBy, _, titleButton, itemForLine) = NCUtility.shared.getLayoutForView(key: layoutKey, serverUrl: serverUrl)
|
|
|
gridLayout.itemForLine = CGFloat(itemForLine)
|
|
|
|