Changelog: build_time fix im Eintrag gespeichert statt dynamisch
This commit is contained in:
@@ -1187,7 +1187,10 @@ function ChangelogModal({ user, toast, onClose }) {
|
||||
if (!form.version.trim() || !form.title.trim()) { toast('Version und Titel erforderlich','error'); return; }
|
||||
setBusy(true);
|
||||
try {
|
||||
const r = await api('/dashboard/changelog',{body:form});
|
||||
const r = await api('/dashboard/changelog',{body:{
|
||||
...form,
|
||||
build_time: typeof __BUILD_TIME__ !== 'undefined' ? __BUILD_TIME__ : null,
|
||||
}});
|
||||
setEntries(p=>[r,...p]);
|
||||
setForm({version:'',title:'',body:''});
|
||||
toast('Eintrag hinzugefügt ✓');
|
||||
@@ -1259,7 +1262,7 @@ function ChangelogModal({ user, toast, onClose }) {
|
||||
</div>
|
||||
<div style={{display:'flex',alignItems:'center',gap:6,flexShrink:0}}>
|
||||
<span style={{color:'rgba(255,255,255,0.2)',fontFamily:'monospace',fontSize:9}}>
|
||||
{typeof __BUILD_TIME__ !== 'undefined' && __BUILD_TIME__ ? __BUILD_TIME__ : fmtDate(e.created_at)}
|
||||
{e.build_time || fmtDate(e.created_at)}
|
||||
</span>
|
||||
{isAdmin && (
|
||||
<button onClick={()=>del(e.id)}
|
||||
|
||||
Reference in New Issue
Block a user