mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
auto-select active identity
This commit is contained in:
parent
0dbaaa60e1
commit
c694efe786
1 changed files with 9 additions and 0 deletions
|
|
@ -134,6 +134,15 @@ class Auth
|
||||||
// Build options list
|
// Build options list
|
||||||
foreach ($this->_options as $id => $option)
|
foreach ($this->_options as $id => $option)
|
||||||
{
|
{
|
||||||
|
// Detect active identity
|
||||||
|
$option->gtk->set_active(
|
||||||
|
boolval(
|
||||||
|
$this->page->container->browser->database->auth->match(
|
||||||
|
$this->page->navbar->request->getValue(), 1 // one
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
// Append option
|
// Append option
|
||||||
$content->add(
|
$content->add(
|
||||||
$option->gtk
|
$option->gtk
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue