Danger warning on approval cards (red card, reasons, no Always); file shelf in the top-left slot with 'На полку' after a drop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -243,6 +243,16 @@ final class AppState: ObservableObject {
|
||||
|
||||
// Dropped file (set during upload flow)
|
||||
@Published var droppedFile: DroppedFile? = nil
|
||||
/// Original URLs of the last drop (all of them), for "На полку".
|
||||
var lastDroppedURLs: [URL] = []
|
||||
|
||||
/// Puts the last dropped files on the shelf and goes back home.
|
||||
func shelveLastDrop() {
|
||||
FileShelf.shared.add(lastDroppedURLs)
|
||||
SoundEngine.shared.play("pop")
|
||||
NotificationCenter.default.post(name: .triggerEmote, object: BotEmote.proud)
|
||||
view = .overview
|
||||
}
|
||||
|
||||
// Short note message (shown in NoteView)
|
||||
@Published var noteMessage: String? = nil
|
||||
|
||||
Reference in New Issue
Block a user