Skip to content

Commit

Permalink
Fix: Use GSA version to create links to manual and GMP documentation
Browse files Browse the repository at this point in the history
Fix creating the URL for the links to the manual and GMP documentation
by versioning them.

AP-1966
  • Loading branch information
bjoernricks committed Mar 15, 2022
1 parent d538ce3 commit 8d0e9d9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/gmp/gmpsettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import {GSA_VERSION} from '../version';

import {isDefined} from './utils/identity';

export const DEFAULT_RELOAD_INTERVAL = 15 * 1000; // fifteen seconds
export const DEFAULT_RELOAD_INTERVAL_ACTIVE = 3 * 1000; // three seconds
export const DEFAULT_RELOAD_INTERVAL_INACTIVE = 60 * 1000; // one minute
export const DEFAULT_MANUAL_URL =
'http://docs.greenbone.net/GSM-Manual/gos-20.08/';
export const DEFAULT_PROTOCOLDOC_URL =
'https://docs.greenbone.net/API/GMP/gmp-20.08.html';
export const DEFAULT_MANUAL_URL = `http://docs.greenbone.net/GSM-Manual/gos-${GSA_VERSION}/`;
export const DEFAULT_PROTOCOLDOC_URL = `https://docs.greenbone.net/API/GMP/gmp-${GSA_VERSION}.html`;
export const DEFAULT_REPORT_RESULTS_THRESHOLD = 25000;
export const DEFAULT_LOG_LEVEL = 'warn';
export const DEFAULT_TIMEOUT = 300000; // 5 minutes
Expand Down

0 comments on commit 8d0e9d9

Please sign in to comment.