Merge pull request #1127 from Smidy13/develop
Bug Fix: Failing to Load Plugins + Tutorials Not Playing
This commit is contained in:
3 files changed
+10
-3
No files matched your search
@@ -3,6 +3,7 @@
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Play Tutorial",
|
||||
"actionProject": "Foundations",
|
||||
"label": "Play",
|
||||
"iconPathOn": "play",
|
||||
"iconPathOff": "play",
|
||||
@@ -10,6 +11,7 @@
|
||||
},
|
||||
{
|
||||
"action": "Resume Tutorial",
|
||||
"actionProject": "Foundations",
|
||||
"label": "Resume",
|
||||
"iconPathOn": "resume",
|
||||
"iconPathOff": "resume",
|
||||
@@ -38,6 +40,7 @@
|
||||
},
|
||||
{
|
||||
"action": "Reset Tutorial Progress",
|
||||
"actionProject": "Foundations",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Reset",
|
||||
"label": "Reset Tutorial Progress",
|
||||
|
||||
@@ -2086,7 +2086,7 @@ function newFoundationsDocsDocumentPage() {
|
||||
/*
|
||||
Adding paragarphs is only possible in the default language.
|
||||
*/
|
||||
if (UI.projects.education.spaces.docsSpace.language === UI.projects.foundations.globals.docs.DEFAULT_LANGUAGE) {
|
||||
if (UI.projects.education.spaces.docsSpace.language === UI.projects.education.globals.docs.DEFAULT_LANGUAGE) {
|
||||
/*
|
||||
We will update the one paragraph we have and we will add the rest.
|
||||
*/
|
||||
|
||||
@@ -142,8 +142,12 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() {
|
||||
let project = "Foundations"
|
||||
try {
|
||||
let config = JSON.parse(pluginFile.config)
|
||||
project = config.project
|
||||
name = config.fileName
|
||||
if (config.project !== undefined) {
|
||||
project = config.project
|
||||
}
|
||||
if (config.fileName !== undefined) {
|
||||
name = config.fileName
|
||||
}
|
||||
} catch (err) { }
|
||||
|
||||
httpRequest(undefined, 'LoadPlugin' + '/' + project + '/' + pluginType + '/' + name + '.json', onFileReceived)
|
||||
|
||||
Reference in new issue
Block a user