mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-04 13:11:35 +02:00
Add Schedule button to archive cards (Issue #208)
- Add "Schedule" button next to "Reprint" on archive cards for quick access to print queue functionality - Button respects queue:create permission for restricted users - Previously only accessible via context menu (right-click) Closes #208
This commit is contained in:
@@ -908,6 +908,17 @@ function ArchiveCard({
|
||||
<Printer className="w-3 h-3 flex-shrink-0" />
|
||||
<span className="hidden sm:inline">Reprint</span>
|
||||
</Button>
|
||||
<Button
|
||||
variant="secondary"
|
||||
size="sm"
|
||||
className="flex-1 min-w-0"
|
||||
onClick={() => setShowSchedule(true)}
|
||||
disabled={!hasPermission('queue:create')}
|
||||
title={!hasPermission('queue:create') ? 'You do not have permission to add to queue' : 'Schedule Print'}
|
||||
>
|
||||
<Calendar className="w-3 h-3 flex-shrink-0" />
|
||||
<span className="hidden sm:inline">Schedule</span>
|
||||
</Button>
|
||||
<Button
|
||||
variant="secondary"
|
||||
size="sm"
|
||||
|
||||
Reference in New Issue
Block a user