Skip to content

Commit

Permalink
feat: show fm graph in beginning of uvl tutorial and fix small error …
Browse files Browse the repository at this point in the history
…for diff edtior
  • Loading branch information
st-vi committed Jan 11, 2024
1 parent ffab220 commit 497baec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WebSocketClient/src/uvlTutorial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import IStandaloneCodeEditor = editor.IStandaloneCodeEditor;
import IIdentifiedSingleEditOperation = editor.IIdentifiedSingleEditOperation;
import {editor} from "monaco-editor";
import IStandaloneDiffEditorConstructionOptions = editor.IStandaloneDiffEditorConstructionOptions;
import { sendGenerateGraphCommand } from "./main";

export default function initUvlTutorial(editor: editor.IStandaloneCodeEditor) {
let tutorialToggle = false;
Expand All @@ -22,6 +23,8 @@ export default function initUvlTutorial(editor: editor.IStandaloneCodeEditor) {
thirdPane.style.width = "50%";
}
setTutorialPage(mainDiv, tutorialPageCounter);
sendGenerateGraphCommand();

} else {
if (secondPane && thirdPane) {
secondPane.style.width = "100%";
Expand All @@ -43,7 +46,7 @@ export default function initUvlTutorial(editor: editor.IStandaloneCodeEditor) {
mainDiv.appendChild(tutorialDiv);

let modifiedCode = tutorialContent[pageNumber].codeListing;
let originalCode = tutorialContent[pageNumber - 1].codeListing;
let originalCode = pageNumber !== 0 ? tutorialContent[pageNumber - 1].codeListing : undefined;
if (modifiedCode && originalCode) {
const paragraph = document.createElement("p");
paragraph.id = "hint";
Expand Down

0 comments on commit 497baec

Please sign in to comment.