Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / assets / javascripts / request_shell_access.js
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 $(document).on('ready ajax:success storage', function() {
6     // Update the "shell access requested" info box according to the
7     // current state of localStorage.
8     var msg = localStorage.getItem('request_shell_access');
9     var $noShellAccessDiv = $('#no_shell_access');
10     if ($noShellAccessDiv.length > 0) {
11         $('.alert-success p', $noShellAccessDiv).text(msg);
12         $('.alert-success', $noShellAccessDiv).toggle(!!msg);
13     }
14 });