chapter hgroup + calming decor
This commit is contained in:
parent
0545b131de
commit
94d14d70c1
370 changed files with 9583 additions and 1566 deletions
|
|
@ -273,18 +273,17 @@ class PageCreateDialog
|
|||
}
|
||||
|
||||
$props = [
|
||||
'slug' => '__new__',
|
||||
'slug' => $this->slug ?? '__new__',
|
||||
'template' => $this->template,
|
||||
'model' => $this->template,
|
||||
'parent' => $this->parent instanceof Page ? $this->parent : null
|
||||
'parent' => $this->parent instanceof Page ? $this->parent : null,
|
||||
'content' => ['title' => $this->title],
|
||||
];
|
||||
|
||||
// make sure that a UUID gets generated
|
||||
// and added to content right away
|
||||
if (Uuids::enabled() === true) {
|
||||
$props['content'] = [
|
||||
'uuid' => $this->uuid = Uuid::generate()
|
||||
];
|
||||
$props['content']['uuid'] = $this->uuid = Uuid::generate();
|
||||
}
|
||||
|
||||
$this->model = Page::factory($props);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue