apitable
apitable copied to clipboard
fix: Add Image in Folder Description should be disabled in read-only mode
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to page 'workbenchβ
- Click on '+Add'
- Scroll down to 'New Folder'
- Click on 'Add decription'
- Entry '/' insert 'Image'
- Click 'X' Button, exit on Edit mode
- Click 'Share', share the folder and get the share link eg. https://apitable.com/share/shrZCpTfeL1jemrVZs5cZ/fodoPuSE3RrQE
- Click 'Add Image' placeholder, you will then be prompted with a file selection
Expected behavior
- Since you are in readonly mode, file upload should be forbidden.
- Tips might be needed while image is empty in description.
Screenshots If applicable, add screenshots to help explain your problem.
link for shared description link for empty image in description
Additional context Add any other context about the problem here.
@ranglang The current read-only permission doesn't allow any other operations to be performed because the permission is controlled by the backend. Only after performing an operation will there be a corresponding information prompt