Skip to content

Commit 6afb317

Browse files
committed
fix lint issue
1 parent b55b952 commit 6afb317

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

frontend/src/components/ui/data-grid/data-grid.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export class DataGrid extends TailwindElement {
161161
if (!this.columns?.length) return;
162162

163163
const cssWidths = this.columns.map((col) => col.width ?? "1fr");
164-
const showFooter = this.addRows && this.addRowsInputValue;
164+
const addRowsInputValue = this.addRows && this.addRowsInputValue;
165165

166166
return html`
167167
<btrix-table
@@ -222,7 +222,7 @@ export class DataGrid extends TailwindElement {
222222
tw`bg-[var(--sl-panel-background-color)] leading-none`,
223223
!this.stickyHeader && [
224224
tw`border`,
225-
showFooter ? tw`rounded-t` : tw`rounded`,
225+
addRowsInputValue ? tw`rounded-t` : tw`rounded`,
226226
],
227227
)}
228228
@btrix-remove=${(e: CustomEvent<RowRemoveEventDetail>) => {
@@ -238,7 +238,7 @@ export class DataGrid extends TailwindElement {
238238
${this.renderRows()}
239239
</btrix-table-body>
240240
241-
${showFooter
241+
${addRowsInputValue
242242
? html`
243243
<btrix-table-footer
244244
class=${clsx(
@@ -257,14 +257,14 @@ export class DataGrid extends TailwindElement {
257257
@click=${() =>
258258
this.rowsController.addRows(
259259
this.defaultItem,
260-
this.addRowsInputValue,
260+
addRowsInputValue,
261261
)}
262262
>
263263
<sl-icon name="plus-lg"></sl-icon>
264264
${msg("Add")}
265265
</btrix-navigation-button>
266266
<btrix-inline-input
267-
value=${this.addRowsInputValue}
267+
value=${addRowsInputValue}
268268
min="1"
269269
max="99"
270270
minlength="1"
@@ -279,7 +279,7 @@ export class DataGrid extends TailwindElement {
279279
}}
280280
></btrix-inline-input>
281281
<span class="ml-2.5 text-neutral-500">
282-
${msg("more")} ${pluralOf("rows", this.addRowsInputValue)}
282+
${msg("more")} ${pluralOf("rows", addRowsInputValue)}
283283
</span>
284284
</btrix-table-cell>
285285
</btrix-table-row>

0 commit comments

Comments
 (0)