2 Commits

Author SHA1 Message Date
BOHA
9abec36f07 v1.5.7: fix Settings system tab crash and OffersTemplates tab gap
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-29 08:29:10 +02:00
BOHA
ecd8e3679f fix: replace stray role reference in system settings tab with inline placeholder
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-29 08:04:22 +02:00
3 changed files with 26 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "app-ts",
"version": "1.5.6",
"version": "1.5.7",
"description": "",
"main": "dist/server.js",
"scripts": {

View File

@@ -71,7 +71,7 @@ export default function OffersTemplates() {
</div>
</motion.div>
<div className="admin-tabs">
<div className="admin-tabs mb-4">
<button
className={`admin-tab ${activeTab === "items" ? "active" : ""}`}
onClick={() => setActiveTab("items")}

View File

@@ -1546,15 +1546,31 @@ export default function Settings() {
</tbody>
</table>
) : (
<Skeleton
name="settings-permissions"
loading={
!role.permissions || role.permissions.length === 0
}
fixture={<span>...</span>}
<div
style={{
padding: "1rem",
display: "flex",
flexDirection: "column",
gap: "0.5rem",
}}
>
<span>{role.permissions?.length || 0} oprávnění</span>
</Skeleton>
<div
style={{
height: "0.75rem",
background: "#e0e0e0",
borderRadius: "4px",
width: "60%",
}}
/>
<div
style={{
height: "0.75rem",
background: "#e0e0e0",
borderRadius: "4px",
width: "40%",
}}
/>
</div>
)}
</div>
</motion.div>