tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
some small tweaks
awarm.space
3 months ago
84ebc7ee
9c57409a
+10
-6
3 changed files
expand all
collapse all
unified
split
app
[leaflet_id]
actions
PublishButton.tsx
publish
PublishPost.tsx
components
Pages
Page.tsx
+1
-1
app/[leaflet_id]/actions/PublishButton.tsx
···
176
176
<hr className="border-border-light mt-3 mb-2" />
177
177
178
178
<div className="flex gap-2 items-center place-self-end">
179
179
-
{selectedPub !== "looseleaf" && (
179
179
+
{selectedPub !== "looseleaf" && selectedPub && (
180
180
<SaveAsDraftButton
181
181
selectedPub={selectedPub}
182
182
leafletId={permission_token.id}
+8
-4
app/[leaflet_id]/publish/PublishPost.tsx
···
177
177
<div className="flex flex-col p-2">
178
178
<div className="font-bold">{props.title}</div>
179
179
<div className="text-tertiary">{props.description}</div>
180
180
-
<hr className="border-border-light mt-2 mb-1" />
181
181
-
<p className="text-xs text-tertiary">
182
182
-
{props.record?.base_path}
183
183
-
</p>
180
180
+
{props.record && (
181
181
+
<>
182
182
+
<hr className="border-border-light mt-2 mb-1" />
183
183
+
<p className="text-xs text-tertiary">
184
184
+
{props.record?.base_path}
185
185
+
</p>
186
186
+
</>
187
187
+
)}
184
188
</div>
185
189
</div>
186
190
<div className="text-xs text-secondary italic place-self-end pt-2">
+1
-1
components/Pages/Page.tsx
···
60
60
/>
61
61
}
62
62
>
63
63
-
{props.first && (
63
63
+
{props.first && pageType === "doc" && (
64
64
<>
65
65
<PublicationMetadata />
66
66
</>