mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
set titles from connection response
This commit is contained in:
parent
03b4555c5d
commit
2f6ac84f3e
2 changed files with 18 additions and 4 deletions
|
|
@ -179,9 +179,9 @@ class Page
|
||||||
{
|
{
|
||||||
// Update title
|
// Update title
|
||||||
$this->title->set(
|
$this->title->set(
|
||||||
_('Pending...'),
|
$connection->getTitle(),
|
||||||
$request['placeholder'] ? $request['placeholder']
|
$connection->getSubtitle(),
|
||||||
: _('Response expected')
|
$connection->getTooltip()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Show response form
|
// Show response form
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,20 @@ class Gemini
|
||||||
case 10: // response expected
|
case 10: // response expected
|
||||||
case 11: // sensitive input
|
case 11: // sensitive input
|
||||||
|
|
||||||
|
$this->_connection->setTitle(
|
||||||
|
_('Pending...')
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->_connection->setSubtitle(
|
||||||
|
$response->getMeta() ? $response->getMeta()
|
||||||
|
: _('Response expected')
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->_connection->setTooltip(
|
||||||
|
$response->getMeta() ? $response->getMeta()
|
||||||
|
: _('Response expected')
|
||||||
|
);
|
||||||
|
|
||||||
$this->_connection->setMime(
|
$this->_connection->setMime(
|
||||||
Filesystem::MIME_TEXT_GEMINI
|
Filesystem::MIME_TEXT_GEMINI
|
||||||
);
|
);
|
||||||
|
|
@ -89,7 +103,7 @@ class Gemini
|
||||||
// show link, no follow
|
// show link, no follow
|
||||||
|
|
||||||
$this->_connection->setTitle(
|
$this->_connection->setTitle(
|
||||||
_('Redirect!')
|
_('Redirect...')
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->_connection->setData(
|
$this->_connection->setData(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue