Skip to content

Commit 370ac95

Browse files
committed
fixup! lint fix
Signed-off-by: Maksim Sukharev <[email protected]>
1 parent 9ceb7cd commit 370ac95

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

src/components/table/LogTable.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,10 @@ onBeforeUnmount(() => {
199199
}
200200
})
201201
202+
/**
203+
* Update the first visible row index on scroll (max 0 to prevent negative index)
204+
*/
202205
function onScroll() {
203-
// Max 0 to prevent negative index
204206
firstVisibleRowIndex.value = Math.max(0, Math.round(tableRoot.value!.scrollTop / tableRowHeight.value))
205207
}
206208
</script>

src/components/table/LogTableRow.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
<LogException v-if="row.exception" :exception="row.exception" />
1717
<!-- Show log message if either there is no exception or a custom message was added -->
1818
<div v-if="!row.exception || (isExpanded && row.message !== row.exception.Message)"
19-
class="row-message__text_message" :title="row.message">
19+
class="row-message__text_message"
20+
:title="row.message">
2021
{{ row.message }}
2122
</div>
2223
</div>

src/store/logging.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const mocks = vi.hoisted(() => {
2727
})
2828

2929
vi.mock('@nextcloud/dialogs', () => ({
30-
showError: mocks.showError
30+
showError: mocks.showError,
3131
}))
3232

3333
vi.mock('../utils/logfile.ts', () => {

src/store/logging.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export const useLogStore = defineStore('logreader-logs', () => {
103103

104104
/**
105105
* Load entries from string
106+
* @param text clipboard text content
106107
*/
107108
async function loadText(text: string) {
108109
// Skip if aborted

0 commit comments

Comments
 (0)