Skip to content

Commit

Permalink
[Feature #1544] Remove attribute label from vocabulary info, remove "…
Browse files Browse the repository at this point in the history
…Annotator" from page title.
  • Loading branch information
ledsoft committed Mar 30, 2021
1 parent 33b43df commit c27a2ef
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions src/component/annotator/Annotator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import TermItState from "../../model/TermItState";
import User from "../../model/User";
import "./Annotator.scss";
import HeaderWithActions from "../misc/HeaderWithActions";
import {Card, CardBody, CardHeader, Col, Label, Row} from "reactstrap";
import {Card, CardBody, CardHeader} from "reactstrap";
import VocabularyIriLink from "../vocabulary/VocabularyIriLink";
import File from "../../model/File";

Expand Down Expand Up @@ -392,13 +392,12 @@ export class Annotator extends React.Component<AnnotatorProps, AnnotatorState> {
};

public render() {

return <>
<WindowTitle title={this.props.i18n("annotator")}/>
<HeaderWithActions title={this.props.i18n("annotator") + " - " + this.props.file.getLabel()}/>
<HeaderWithActions title={this.props.file.getLabel()}/>
<Card>
<CardHeader>
{this.renderMetadata()}
<CardHeader className="text-right">
<VocabularyIriLink iri={IRIImpl.toString(this.props.vocabularyIri)}/>
</CardHeader>
<CardBody>
<LegendToggle key="legend-toggle"/>
Expand Down Expand Up @@ -433,17 +432,6 @@ export class Annotator extends React.Component<AnnotatorProps, AnnotatorState> {
</>
}

private renderMetadata() {
return <Row>
<Col xl={2} md={4}>
<Label className="attribute-label">{this.props.i18n("annotator.vocabulary")}</Label>
</Col>
<Col xl={10} md={8}>
<VocabularyIriLink iri={IRIImpl.toString(this.props.vocabularyIri)}/>
</Col>
</Row>;
}

private generateVirtualPopperAnchor(): HTMLElement {
// Based on https://popper.js.org/docs/v2/virtual-elements/
return HtmlDomUtils.generateVirtualElement(this.state.selectionPurposeDialogAnchorPosition.x, this.state.selectionPurposeDialogAnchorPosition.y);
Expand Down

0 comments on commit c27a2ef

Please sign in to comment.