Make SciNote Edit latest versions url configurable [SCI-11495]

This commit is contained in:
Martin Artnik 2025-01-24 13:09:36 +01:00
parent bff5a6586a
commit 4c9026160e
2 changed files with 3 additions and 1 deletions

View file

@ -114,7 +114,7 @@ export default {
},
methods: {
fetchData() {
$.get('https://extras.scinote.net/scinote-edit/latest.json', (result) => {
$.get(GLOBAL_CONSTANTS.SCINOTE_EDIT_LATEST_JSON_URL, (result) => {
this.responseData = result;
});
}

View file

@ -458,6 +458,8 @@ class Constants
JSE LNK MSC MSI MSP MST PAF PIF PS1 REG RGS SCR SCT SHB SHS U3P VB VBE VBS VBSCRIPT WS WSF WSH
).freeze
SCINOTE_EDIT_LATEST_JSON_URL = ENV['SCINOTE_EDIT_LATEST_JSON_URL'].freeze
# quick search
QUICK_SEARCH_LIMIT = 5
QUICK_SEARCH_SEARCHABLE_OBJECTS = %w(project experiment my_module protocol repository_row