Skip to content
Snippets Groups Projects
Commit 0120576d authored by Anthony's avatar Anthony
Browse files

Windows can be opened

parent f56bc480
Branches
Tags
2 merge requests!13Manifest side to side,!11Draft: 33 8 open an other manifest side by side from an annotation
......@@ -59,8 +59,9 @@ export class CanvasAnnotations extends Component {
console.log("open");
let manifestId = 'https://preview.iiif.io/cookbook/master/recipe/0003-mvm-video/manifest.json' // For testing purposes
const { addResource } = this.props;
const { addResource, addWindow } = this.props;
addResource(manifestId);
addWindow({ manifestId });
}
/**
......@@ -136,6 +137,7 @@ export class CanvasAnnotations extends Component {
CanvasAnnotations.propTypes = {
addResource: PropTypes.func.isRequired,
addWindow: PropTypes.func.isRequired,
annotations: PropTypes.arrayOf(
PropTypes.shape({
content: PropTypes.string.isRequired,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment