Skip to content

Commit 45c7d30

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2 parents 69c389e + 3e7cf7c commit 45c7d30

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

libraries/classes/Controllers/Preferences/TwoFactorController.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
use function __;
1616
use function count;
17+
use function define;
1718

1819
class TwoFactorController extends AbstractController
1920
{
@@ -66,5 +67,11 @@ public function __invoke(ServerRequest $request): void
6667
'backends' => $twoFactor->getAllBackends(),
6768
'missing' => $twoFactor->getMissingDeps(),
6869
]);
70+
71+
if ($this->response->isAjax()) {
72+
$this->response->addJSON('disableNaviSettings', true);
73+
} else {
74+
define('PMA_DISABLE_NAVI_SETTINGS', true);
75+
}
6976
}
7077
}

public/themes/bootstrap/scss/_common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ textarea#partitiondefinition {
889889

890890
// for elements that should be revealed only via js
891891
.hide {
892-
display: none;
892+
display: none !important;
893893
}
894894

895895
#list_server {

0 commit comments

Comments
 (0)