Browse Source

fix(gui-v2): scroll log automatically

pull/2885/head
Wing-Kam Wong 2 years ago
parent
commit
2d8525e948
  1. 7
      packages/nc-gui-v2/components/dlg/AirtableImport.vue

7
packages/nc-gui-v2/components/dlg/AirtableImport.vue

@ -208,12 +208,7 @@ onMounted(async () => {
socket.on('progress', async (d: Record<string, any>) => {
progress.value.push(d)
nextTick(() => {
if (logRef.value) {
const el = logRef.value.$el
el.scrollTop = el.scrollHeight
}
})
logRef.value.scrollTop = logRef.value?.scrollHeight
if (d.status === 'COMPLETED') {
showGoToDashboardButton.value = true

Loading…
Cancel
Save