Merge pull request #12 from jedmund/hotfix/universe-actions

Fix universe actions
This commit is contained in:
Justin Edmund 2025-08-22 22:10:15 -07:00 committed by GitHub
commit bc2d1b4092
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -367,10 +367,12 @@
onStatusChange={handleSave}
disabled={saving}
isLoading={saving}
primaryAction={status === 'published'
? { label: 'Save', status: 'published' }
: { label: 'Publish', status: 'published' }}
dropdownActions={[{ label: 'Save as Draft', status: 'draft', show: status !== 'draft' }]}
primaryAction={status === 'draft'
? { label: 'Save draft', status: 'draft' }
: { label: 'Save post', status: 'published' }}
dropdownActions={status === 'draft'
? [{ label: 'Publish', status: 'published' }]
: [{ label: 'Save as Draft', status: 'draft' }]}
viewUrl={slug ? `/universe/${slug}` : undefined}
/>
</div>