mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
move progressbar initiation to the page entity
This commit is contained in:
parent
195860c342
commit
e1455e5772
2 changed files with 7 additions and 6 deletions
|
|
@ -107,8 +107,15 @@ class Page
|
||||||
bool $history = true
|
bool $history = true
|
||||||
): void
|
): void
|
||||||
{
|
{
|
||||||
|
// Show progressbar
|
||||||
|
$this->progressbar->infinitive();
|
||||||
|
|
||||||
|
// Update content entity
|
||||||
$this->content->update(
|
$this->content->update(
|
||||||
$history
|
$history
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Hide progressbar
|
||||||
|
$this->progressbar->hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -73,9 +73,6 @@ class Content
|
||||||
bool $history = true
|
bool $history = true
|
||||||
): void
|
): void
|
||||||
{
|
{
|
||||||
// Show progressbar
|
|
||||||
$this->page->progressbar->infinitive();
|
|
||||||
|
|
||||||
// Parse address
|
// Parse address
|
||||||
$address = new \Yggverse\Net\Address(
|
$address = new \Yggverse\Net\Address(
|
||||||
$this->page->navbar->request->getValue()
|
$this->page->navbar->request->getValue()
|
||||||
|
|
@ -415,8 +412,5 @@ class Content
|
||||||
$this->page->title->getValue(),
|
$this->page->title->getValue(),
|
||||||
$this->page->title->getSubtitle(),
|
$this->page->title->getSubtitle(),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Hide progressbar
|
|
||||||
$this->page->progressbar->hide();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue