|
@@ -25,18 +25,18 @@ import Foundation
|
|
|
import NextcloudKit
|
|
|
|
|
|
let dashboardDatasTest: [DashboardData] = [
|
|
|
- .init(id: 0, image: "nextcloud", title: "title 1", subTitle: "subTitle 1", url: URL(string: "https://nextcloud.com/")!),
|
|
|
- .init(id: 1, image: "nextcloud", title: "title 2", subTitle: "subTitle 2", url: URL(string: "https://nextcloud.com/")!),
|
|
|
- .init(id: 2, image: "nextcloud", title: "title 3", subTitle: "subTitle 3", url: URL(string: "https://nextcloud.com/")!),
|
|
|
- .init(id: 3, image: "nextcloud", title: "title 4", subTitle: "subTitle 4", url: URL(string: "https://nextcloud.com/")!),
|
|
|
- .init(id: 4, image: "nextcloud", title: "title 5", subTitle: "subTitle 5", url: URL(string: "https://nextcloud.com/")!)
|
|
|
+ .init(id: 0, image: "nextcloud", title: "title 1", subTitle: "subTitle - description 1", url: URL(string: "https://nextcloud.com/")!),
|
|
|
+ .init(id: 1, image: "nextcloud", title: "title 2", subTitle: "subTitle - description 2", url: URL(string: "https://nextcloud.com/")!),
|
|
|
+ .init(id: 2, image: "nextcloud", title: "title 3", subTitle: "subTitle - description 3", url: URL(string: "https://nextcloud.com/")!),
|
|
|
+ .init(id: 3, image: "nextcloud", title: "title 4", subTitle: "subTitle - description 4", url: URL(string: "https://nextcloud.com/")!),
|
|
|
+ .init(id: 4, image: "nextcloud", title: "title 5", subTitle: "subTitle - description 5", url: URL(string: "https://nextcloud.com/")!)
|
|
|
]
|
|
|
|
|
|
-func readDashboard(completion: @escaping (_ dashboardData: [DashboardData]) -> Void) {
|
|
|
+func readDashboard(completion: @escaping (_ dashboardData: [DashboardData], _ isPlaceholder: Bool) -> Void) {
|
|
|
|
|
|
guard let activeAccount = NCManageDatabase.shared.getActiveAccount() else {
|
|
|
- return completion(dashboardDatasTest)
|
|
|
+ return completion(dashboardDatasTest, true)
|
|
|
}
|
|
|
|
|
|
- completion(dashboardDatasTest)
|
|
|
+ completion(dashboardDatasTest, false)
|
|
|
}
|