Skip to content

Commit

Permalink
add feedback form in workspace logs
Browse files Browse the repository at this point in the history
  • Loading branch information
laushinka committed May 23, 2022
1 parent 7a18ec3 commit 79bcd31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/dashboard/src/components/WorkspaceLogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { useContext, useEffect, useRef } from "react";
import { Terminal, ITerminalOptions, ITheme } from "xterm";
import { FitAddon } from "xterm-addon-fit";
import "xterm/css/xterm.css";
import FeedbackComponent from "../feedback-form/FeedbackComponent";
import { ThemeContext } from "../theme-context";

const darkTheme: ITheme = {
Expand Down Expand Up @@ -75,6 +76,7 @@ export default function WorkspaceLogs(props: WorkspaceLogsProps) {
useEffect(() => {
if (terminalRef.current && props.errorMessage) {
terminalRef.current.write(`\r\n\u001b[38;5;196m${props.errorMessage}\u001b[0m\r\n`);
<FeedbackComponent isModal={false} />;
}
}, [terminalRef.current, props.errorMessage]);

Expand Down

0 comments on commit 79bcd31

Please sign in to comment.