* testcase: display diffferent batch actions based on the $browseType parameter.

This commit is contained in:
liugang
2023-06-29 09:54:45 +08:00
parent bbe3044a8b
commit e1e2f7adad
2 changed files with 15 additions and 13 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ declare(strict_types=1);
*/
namespace zin;
$isOnlyScene = strtolower($browseType) == 'onlyscene';
$isProjectApp = $this->app->tab == 'project';
$currentModule = $isProjectApp ? 'project' : 'testcase';
$currentMethod = $isProjectApp ? 'testcase' : 'browse';
@@ -134,7 +135,7 @@ featureBar
a
(
set::href(str_replace('{key}', 'onlyScene', $browseLink)),
set('class', strtolower($browseType) == 'onlyscene' ? 'active' : ''),
set('class', $isOnlyScene ? 'active' : ''),
set('data-load', $load),
$lang->testcase->onlyScene
)