mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 07:34:41 +08:00
Make SciNote Edit latest versions url configurable [SCI-11495]
This commit is contained in:
parent
bff5a6586a
commit
4c9026160e
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue