浏览代码

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 年之前
父节点
当前提交
1911775c4d
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      iOSClient/Main/Create cloud/NCUploadAssets.swift

+ 13 - 0
iOSClient/Main/Create cloud/NCUploadAssets.swift

@@ -377,6 +377,19 @@ struct UploadAssetsView: View {
                                                     Label(NSLocalizedString("_modify_", comment: ""), systemImage: "pencil.tip.crop.circle")
                                                 }
                                             }
+                                            if item.data == nil && item.asset.type == .livePhoto && item.assetType == .livePhoto {
+                                                Button(action: {
+                                                    uploadAssets.previewStore[index].assetType = .photo
+                                                }) {
+                                                    Label(NSLocalizedString("_disable_livephoto_", comment: ""), systemImage: "livephoto.slash")
+                                                }
+                                            } else if item.data == nil && item.asset.type == .livePhoto && item.assetType == .photo {
+                                                Button(action: {
+                                                    uploadAssets.previewStore[index].assetType = .livePhoto
+                                                }) {
+                                                    Label(NSLocalizedString("_enable_livephoto_", comment: ""), systemImage: "livephoto")
+                                                }
+                                            }
                                             Button(role: .destructive, action: {
                                                 deleteAsset(index: index)
                                             }) {