Skip to content

Commit

Permalink
ui tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnuttandrew committed Feb 29, 2024
1 parent a1659eb commit cefc0c0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/linting/Eval.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { lint } from "../lib/api-calls";
import { buttonStyle } from "../lib/styles";
import LintDisplay from "./LintDisplay.svelte";
import LintCustomizationModal from "./LintCustomizationModal.svelte";
import LintCustomizationModal from "./LintCustomizationTab.svelte";
import Nav from "../components/Nav.svelte";
import NewLintSuggestion from "./NewLintSuggestion.svelte";
import { titleCase } from "../lib/utils";
Expand Down Expand Up @@ -59,6 +59,21 @@
tabs={["regular", "compact", "lint-customization"]}
isTabSelected={(x) => x === displayMode}
selectTab={(x) => {
// TODO: maybe need to update the lints on change?
if (displayMode === "lint-customization") {
const outPal = {
...currentPal,
evalConfig: {
...currentPal.evalConfig,
globallyIgnoredLints: $lintStore.globallyIgnoredLints,
},
};
loadLints()
.then(() => lint(outPal, false))
.then((res) => {
checks = res;
});
}
//@ts-ignore
configStore.setEvalDisplayMode(x);
}}
Expand Down
File renamed without changes.

0 comments on commit cefc0c0

Please sign in to comment.