Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Nov 20, 2023
1 parent e840be3 commit 502930e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/ConvertEafModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ class ConvertEafModal extends React.Component {
<div style={{ marginTop: "0.5em" }}>
<Checkbox
checked={useAdditionalMarkup}
label={this.context("Additional markup settings") + (useAdditionalMarkup ? ":" : ".")}
label={this.context("Convert additional markup") + (useAdditionalMarkup ? ":" : ".")}
onChange={(e, { checked }) => this.useAdditionalMarkupChange(checked)}
/>
{useAdditionalMarkup && (
Expand Down
10 changes: 5 additions & 5 deletions src/components/MarkupModal/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useContext } from "react";
import { connect } from "react-redux";
import { Button, Icon, Message, Modal } from "semantic-ui-react";
import { gql } from "@apollo/client";
import { gql, useQuery } from "@apollo/client";
import { graphql } from "@apollo/client/react/hoc";
import PropTypes from "prop-types";
import { branch, compose, renderNothing } from "recompose";
Expand Down Expand Up @@ -58,7 +58,7 @@ const MarkupModal = props => {

const getTranslation = useContext(TranslationContext);

const { loading, error, data: { convert_five_tiers_validate: isValidList } = useQuery(validateQuery, {
const { loading, error, data: { convert_five_tiers_validate: isValidList }} = useQuery(validateQuery, {
variables: {
idList: [props.id]
}
Expand All @@ -74,17 +74,17 @@ const MarkupModal = props => {
<span>
{this.context("Loading markup data")}... <Icon name="spinner" loading />
</span>
) || const preview=isValidList[0] && (
) || isValidList[0] && (
<>
<Button
content={getTranslation("Convert morphology concordance...")}
onClick={() => actions.openConvert(audio, data.markup, columns, allEntriesGenerator, true, preview)}
onClick={() => actions.openConvert(audio, data.markup, columns, allEntriesGenerator, morphology=true, preview=isValidList[0])}
id={data.markup.id}
className="lingvo-button-lite-violet"
/>
<Button
content={getTranslation("Convert to dictionary...")}
onClick={() => actions.openConvert(audio, data.markup, columns, allEntriesGenerator, false, preview)}
onClick={() => actions.openConvert(audio, data.markup, columns, allEntriesGenerator, morphology=false, preview=isValidList[0])}
id={data.markup.id}
className="lingvo-button-violet"
/>
Expand Down

0 comments on commit 502930e

Please sign in to comment.