v1.14.0-profiles: profile accounts, drafts, page management, Planning Center #32
2 changed files with 3 additions and 1 deletions
|
|
@ -469,6 +469,8 @@ export const pages = {
|
|||
singular: "page",
|
||||
idLabel: "URL ID",
|
||||
slugFrom: "title",
|
||||
// The server refuses to delete these (CORE_PAGES); no Delete button.
|
||||
undeletable: CORE_PAGE_IDS,
|
||||
// Every page's address, title, intro and switches, then its own
|
||||
// sections, the front page's included (its hero and bands).
|
||||
list: {
|
||||
|
|
|
|||
|
|
@ -638,7 +638,7 @@ export default function EntityEdit() {
|
|||
Discard draft
|
||||
</button>
|
||||
)}
|
||||
{!isNew && !singleton && canDelete && (
|
||||
{!isNew && !singleton && canDelete && !manifest.undeletable?.includes(id) && (
|
||||
<button
|
||||
type="button"
|
||||
onClick={remove}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue