From 0120576d08834b1cd388f1ce5294d049305fc7ab Mon Sep 17 00:00:00 2001
From: Anthony Geourjon <anthony.geourjon@tetras-libre.fr>
Date: Wed, 25 Jan 2023 15:40:14 +0100
Subject: [PATCH] Windows can be opened

---
 src/components/CanvasAnnotations.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/components/CanvasAnnotations.js b/src/components/CanvasAnnotations.js
index 0dd39e3a0..75ac6f7cb 100644
--- a/src/components/CanvasAnnotations.js
+++ b/src/components/CanvasAnnotations.js
@@ -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,
-- 
GitLab