Skip to content

Commit

Permalink
wip [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Mar 10, 2024
1 parent 3adf36b commit f3d954a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sources/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ const App = () => {
});
}

const disableScalafixRuleTemplateInput = outputType === "raw" || outputType === "tokens";

return html` <div class="container mw-100">
<details open ontoggle="${(e) => changeDetails(e)}">
<summary>${summary}</summary>
Expand All @@ -198,6 +200,7 @@ const App = () => {
<input
type="checkbox"
name="wildcard_import"
disabled=${disableScalafixRuleTemplateInput}
checked=${wildcardImport}
onChange=${(e) => setWildcardImport(e.target.checked)}
/>
Expand Down Expand Up @@ -328,6 +331,7 @@ const App = () => {
<div>
<label for="package">package</label>
<input
disabled=${disableScalafixRuleTemplateInput}
maxlength="256"
id="package"
value=${packageName}
Expand All @@ -339,6 +343,7 @@ const App = () => {
<div>
<label for="rule_name">rule name</label>
<input
disabled=${disableScalafixRuleTemplateInput}
type="text"
id="rule_name"
maxlength="128"
Expand All @@ -359,6 +364,7 @@ const App = () => {
<select
name="patch"
value=${patch}
disabled=${disableScalafixRuleTemplateInput}
onChange=${(e) => setPatch(e.target.value)}
>
<option value="warn">lint warn</option>
Expand Down

0 comments on commit f3d954a

Please sign in to comment.