fix build
This commit is contained in:
parent
dbec57d647
commit
7ab2cdff2d
2 changed files with 2 additions and 3 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
import React from 'react';
|
|
||||||
import { FaGlobe } from 'react-icons/fa';
|
import { FaGlobe } from 'react-icons/fa';
|
||||||
import { useLanguage } from '../../../providers/language/LanguageContext';
|
import { useLanguage } from '../../../providers/language/LanguageContext';
|
||||||
import styles from './LanguageSelector.module.css';
|
import styles from './LanguageSelector.module.css';
|
||||||
|
|
|
||||||
|
|
@ -406,8 +406,8 @@ const OrphansTab: React.FC = () => {
|
||||||
|
|
||||||
const _cleanOne = async (o: OrphanEntry) => {
|
const _cleanOne = async (o: OrphanEntry) => {
|
||||||
const ok = await confirm(
|
const ok = await confirm(
|
||||||
t('Orphans bereinigen'),
|
|
||||||
t('{count} verwaiste Einträge in {table}.{column} löschen?', { count: o.orphanCount, table: o.sourceTable, column: o.sourceColumn }),
|
t('{count} verwaiste Einträge in {table}.{column} löschen?', { count: o.orphanCount, table: o.sourceTable, column: o.sourceColumn }),
|
||||||
|
{ title: t('Orphans bereinigen'), variant: 'danger' },
|
||||||
);
|
);
|
||||||
if (!ok) return;
|
if (!ok) return;
|
||||||
const key = `${o.sourceDb}.${o.sourceTable}.${o.sourceColumn}`;
|
const key = `${o.sourceDb}.${o.sourceTable}.${o.sourceColumn}`;
|
||||||
|
|
@ -429,11 +429,11 @@ const OrphansTab: React.FC = () => {
|
||||||
|
|
||||||
const _cleanAll = async () => {
|
const _cleanAll = async () => {
|
||||||
const ok = await confirm(
|
const ok = await confirm(
|
||||||
t('Alle Orphans bereinigen'),
|
|
||||||
t('{count} verwaiste Einträge in {relations} Beziehungen löschen?', {
|
t('{count} verwaiste Einträge in {relations} Beziehungen löschen?', {
|
||||||
count: totalOrphans,
|
count: totalOrphans,
|
||||||
relations: allOrphans.filter(o => o.orphanCount > 0).length,
|
relations: allOrphans.filter(o => o.orphanCount > 0).length,
|
||||||
}),
|
}),
|
||||||
|
{ title: t('Alle Orphans bereinigen'), variant: 'danger' },
|
||||||
);
|
);
|
||||||
if (!ok) return;
|
if (!ok) return;
|
||||||
setCleaningAll(true);
|
setCleaningAll(true);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue