This commit is contained in:
Eric van der Vlist 2023-01-09 16:02:18 +01:00
parent 1f1b57e4b4
commit d6317ca8a4
3 changed files with 16 additions and 3 deletions

View File

@ -8,6 +8,7 @@ import DeleteIcon from '@suid/icons-material/Delete';
import QuestionMarkIcon from '@suid/icons-material/QuestionMark';
import dispatch from '../../workers/dispatcher-main';
import Alert from '../alert';
import { useI18n } from '@solid-primitives/i18n';
interface Props {
trkId: string;
@ -20,6 +21,8 @@ const TrkViewer: Component<Props> = ({ trkId, restrictToHierarchy }) => {
const [confirmDelete, setConfirmDelete] = createSignal(false);
const [t] = useI18n();
const title = () => {
return trk().name;
};
@ -96,7 +99,7 @@ const TrkViewer: Component<Props> = ({ trkId, restrictToHierarchy }) => {
size='small'
onClick={deleteHandler}
>
YES
{t('yes')}
</Button>
<Button
color='primary'
@ -104,12 +107,12 @@ const TrkViewer: Component<Props> = ({ trkId, restrictToHierarchy }) => {
size='small'
onclick={cancelDeleteHandler}
>
NO
{t('no')}
</Button>
</>
}
>
Delete this track ?
{t('deleteTrack')}
</Alert>
</>
);

View File

@ -65,6 +65,11 @@ const dict = {
from: 'from ',
to: 'to ',
yes: 'yes',
no: 'no',
deleteTrack: 'Delete this track',
};
export default dict;

View File

@ -71,6 +71,11 @@ const dict = {
from: 'de ',
to: 'à ',
yes: 'oui',
no: 'non',
deleteTrack: 'Supprimer cette trace',
};
export default dict;