mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
remove the confirmation sheet cos it doesnt work
cant download empty packs
This commit is contained in:
2 files changed
+15
-16
No files matched your search
@@ -159,6 +159,7 @@ struct EmojiPackDetailView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.disabled(pack.items.isEmpty)
|
||||||
.tint(allDownloaded ? .red : .accentColor)
|
.tint(allDownloaded ? .red : .accentColor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,23 +71,21 @@ struct EmojiPackManager: View {
|
|||||||
ToolbarSpacer()
|
ToolbarSpacer()
|
||||||
}
|
}
|
||||||
|
|
||||||
// if editMode?.wrappedValue.isEditing ?? false {
|
ToolbarItem(placement: .topBarLeading) {
|
||||||
ToolbarItem(placement: .topBarLeading) {
|
Button("", systemImage: "trash") {
|
||||||
Button("", systemImage: "trash") {
|
showDeleteAlert.toggle()
|
||||||
showDeleteAlert.toggle()
|
|
||||||
}
|
|
||||||
.disabled(selection.isEmpty)
|
|
||||||
.confirmationDialog("These items will be deleted immediately", isPresented: $showDeleteAlert) {
|
|
||||||
Button("Delete \(selection.count) pack\(selection.count.plural)", role: .destructive) {
|
|
||||||
for pack in selection {
|
|
||||||
hoarder.removeEmojiPack(pack)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} message: {
|
|
||||||
Text("This action cannot be undone")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// }
|
.disabled(selection.isEmpty)
|
||||||
|
// .confirmationDialog("These items will be deleted immediately", isPresented: $showDeleteAlert) {
|
||||||
|
// Button("Delete \(selection.count) pack\(selection.count.plural)", role: .destructive) {
|
||||||
|
// for pack in selection {
|
||||||
|
// hoarder.removeEmojiPack(pack)
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// } message: {
|
||||||
|
// Text("This action cannot be undone")
|
||||||
|
// }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||