Perfect! Now I can see the current structure. Let me make the changes you requested - remove viewers, convert categories to dropdown, add public/private visibility, and show permissions only for public files.
Perfect! I've updated the modal according to your requirements. The key changes include removing the viewers section entirely, converting categories to a dropdown with color-coded badges, and adding a public/private visibility selector. When "public" is selected, users can search for specific users and select departments, but when "private" is selected, these permission controls are hidden completely.
ปรับให้ depeartment มาก่อน specific userให้เลือก department ก่อน specific โดย departments ถ้าเลือก all ก็คือจะเลือก department อื่นไม่ได้
Perfect! Now I can see the current structure. Let me reorder the sections so departments come before specific users, and add the "All" selection logic where selecting "All" prevents other department selections.
Perfect! I've successfully reordered the sections and implemented the "All" department selection logic. Now departments come before specific users, and when "All" is selected in departments, it prevents selecting individual departments by disabling them and showing a clear "All Departments" badge. The interface provides intuitive feedback and maintains clean visual hierarchy.
ปรับเรื่อง background ของ file ที่ upload หน่อย เพราะว่า ถ้าอัพโหลดหลาย file มันลายตา อาจจะทำเป็นแบบ Accordion ของแต่ ละ file