/
vshmidt
/
cloudbeaver
Обзор
Документация
Войти
/
vshmidt
/
cloudbeaver
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
devel
webapp/packages/plugin-sql-editor/src/SqlEditorStatusBar.tsx
40 строк
1 KB
alex
dbeaver/pro#7657 avoid blicking by debounce loading state (#4174)
09 мар 2026, 16:12
Не верифицирован
09 мар 2026, 16:12
07db196
Код
Авторство
О чём код?
/* * CloudBeaver - Cloud Database Manager * Copyright (C) 2020-2025 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ import { observer } from 'mobx-react-lite'; import { Alert, Loader, s, useS, useTranslate } from '@cloudbeaver/core-blocks'; import type { ISqlDataSource } from './SqlDataSource/ISqlDataSource.js'; import classes from './SqlEditorStatusBar.module.css'; interface Props { dataSource: ISqlDataSource | undefined; } export const SqlEditorStatusBar = observer<Props>(function SqlEditorStatusBar({ dataSource }) { const styles = useS(classes); const t = useTranslate(); return ( <Loader className={s(styles, { statusPosition: true, loader: true })} state={dataSource} message={dataSource?.loadingMessage} hideMessage={false} inline inlineException small > {dataSource?.message && ( <div className={s(styles, { statusPosition: true }, 'tw:p-2')}> <Alert title={t(dataSource.message)} /> </div> )} </Loader> ); });