mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
deactivate logout option on identities list empty
This commit is contained in:
parent
06834d92c4
commit
333b39c74f
1 changed files with 20 additions and 9 deletions
|
|
@ -257,15 +257,6 @@ class Auth
|
||||||
// Detect option type
|
// Detect option type
|
||||||
switch ($id)
|
switch ($id)
|
||||||
{
|
{
|
||||||
case Auth\Option\Identity::ID_LOG_OUT:
|
|
||||||
|
|
||||||
// Logout previous session
|
|
||||||
$this->page->container->browser->database->auth->logout(
|
|
||||||
$this->page->navbar->request->getValue()
|
|
||||||
);
|
|
||||||
|
|
||||||
break;
|
|
||||||
|
|
||||||
case Auth\Option\Identity::ID_CRT_NEW:
|
case Auth\Option\Identity::ID_CRT_NEW:
|
||||||
|
|
||||||
// Logout previous session
|
// Logout previous session
|
||||||
|
|
@ -303,6 +294,15 @@ class Auth
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Auth\Option\Identity::ID_LOG_OUT:
|
||||||
|
|
||||||
|
// Logout previous session
|
||||||
|
$this->page->container->browser->database->auth->logout(
|
||||||
|
$this->page->navbar->request->getValue()
|
||||||
|
);
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
// Logout previous session
|
// Logout previous session
|
||||||
|
|
@ -352,6 +352,17 @@ class Auth
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Auth\Option\Identity::ID_LOG_OUT:
|
||||||
|
|
||||||
|
// Update sensibility
|
||||||
|
$option->gtk->set_sensitive(
|
||||||
|
count(
|
||||||
|
$this->_options
|
||||||
|
) > 2
|
||||||
|
);
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue