mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-04 13:22:41 +02:00
refactor: streamline document actions
- Simplified the RowActions component by removing unused imports and replacing the dropdown menu with tooltip buttons for editing, viewing metadata, and deleting documents. - Updated the JsonMetadataViewer component to support controlled mode for better integration with the RowActions component. - Adjusted CSS variables for destructive actions in globals.css for improved visual consistency.
This commit is contained in:
parent
d0c7be7eca
commit
ea94c778c9
4 changed files with 135 additions and 76 deletions
|
|
@ -17,9 +17,7 @@ from app.utils.rbac import check_permission
|
|||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get(
|
||||
"/search-spaces/{search_space_id}/documents/{document_id}/editor-content"
|
||||
)
|
||||
@router.get("/search-spaces/{search_space_id}/documents/{document_id}/editor-content")
|
||||
async def get_editor_content(
|
||||
search_space_id: int,
|
||||
document_id: int,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue