Skip to content

Commit

Permalink
V3: Code for Sound is set on read-only without tools
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-reis committed Oct 30, 2024
1 parent fcc6022 commit ac5dc63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ArticleV3/ArticleCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ArticleCell = ({
const isolationMode = outputs.some(
(d) => typeof d.metadata === 'object' && d.metadata['text/html']?.isolated,
)
const renderUsingThebe = true //tags.includes('data');
const renderUsingThebe = type === CellTypeCode && !figure?.isSound; //tags.includes('data');

// const ref = useCallback(
// (node) => {
Expand Down
3 changes: 2 additions & 1 deletion src/models/ArticleFigure.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CoverRefPrefix, FigureRefPrefix } from '../constants'
import { CoverRefPrefix, FigureRefPrefix, SoundRefPrefix } from '../constants'

export default class ArticleFigure {
constructor({
Expand All @@ -17,6 +17,7 @@ export default class ArticleFigure {
this.ref = ref
this.isTable = isTable
this.isCover = refPrefix === CoverRefPrefix
this.isSound = refPrefix === SoundRefPrefix;
this.tNLabel = this.isCover
? 'cover'
: `numbers.${refPrefix.substring(0, refPrefix.length - 1)}`
Expand Down

0 comments on commit ac5dc63

Please sign in to comment.