restore starring

This commit is contained in:
2025-05-28 14:24:53 +02:00
parent 6272f71355
commit 1134f5b099
6 changed files with 1920 additions and 7 deletions

View File

@@ -300,6 +300,15 @@ export class ViewManager {
`);
}
// Add star button
actions.push(`
<button class="btn btn-sm file-action-btn" title="${file.starred ? 'Unstar' : 'Star'}"
onclick="window.roomManager.fileManager.toggleStar('${file.name}', '${file.path || ''}')"
style="background-color:${file.starred ? 'var(--warning-opacity-15)' : 'var(--primary-opacity-8)'};color:${file.starred ? 'var(--warning-color)' : 'var(--primary-color)'};">
<i class="fas fa-star"></i>
</button>
`);
if (this.roomManager.canDelete) {
actions.push(`
<button class="btn btn-sm file-action-btn" title="Delete" onclick="window.roomManager.modalManager.showDeleteModal('${file.name}', '${file.path || ''}')"