feat(web): «Deshacer» after moving, reassigning or trashing a ticket
A toast offers to undo for seven seconds (or Ctrl/⌘ Z outside a field) by running the opposite command: the card back to its column or the ticket to its status (the workflow may refuse it), the previous assignee, or the ticket back from the trash. The undo itself only says «Deshecho». On the board, from the card's assignee; on the ticket page, status, assignee and trash, which no longer asks for confirmation. The toast is the app's own (UndoToastComponent): pi-snack-bar cannot tell its button from the timeout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1599,13 +1599,9 @@ export class IssuePage {
|
||||
);
|
||||
}
|
||||
|
||||
/** No confirmation: the toast offers «Deshacer», and the trash keeps it 30 days. */
|
||||
protected trash(): void {
|
||||
if (
|
||||
confirm(
|
||||
'¿Mover el ticket a la papelera? Podrás recuperarlo durante 30 días.',
|
||||
)
|
||||
)
|
||||
this.facade.setTrashed(true);
|
||||
this.facade.setTrashed(true);
|
||||
}
|
||||
|
||||
/** `e`: edit the ticket (not while typing, nor with a drawer open). */
|
||||
|
||||
Reference in New Issue
Block a user