diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-26 19:30:02 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-26 19:30:02 -0500 |
commit | f3deb6492a74f1ffa9e3391274e0ab7947a04016 (patch) | |
tree | cbf7a3563cf1543bd131dd114f8dc89afdf5328f /app/Core/User/UserSession.php | |
parent | 4f325193be4f16a9658258fecd525e71917156a0 (diff) |
Add toggle button to show/hide subtasks in task list view
Diffstat (limited to 'app/Core/User/UserSession.php')
-rw-r--r-- | app/Core/User/UserSession.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Core/User/UserSession.php b/app/Core/User/UserSession.php index 7917b223..f3f7359a 100644 --- a/app/Core/User/UserSession.php +++ b/app/Core/User/UserSession.php @@ -146,6 +146,17 @@ class UserSession extends Base } /** + * Return true if subtask list toggle is active + * + * @access public + * @return string + */ + public function hasSubtaskListActivated() + { + return isset($this->sessionStorage->subtaskListToggle) && ! empty($this->sessionStorage->subtaskListToggle); + } + + /** * Check is the user is connected * * @access public |