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

WIP adding resource in catalog

parent 1afb02cf
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,8 @@ class CanvasListItem extends Component {
/** */
handleOpenOtherManifest(manifestId) {
console.log('Opening TODO');
actions.addResource(manifestId);
let result = actions.addResource(manifestId);
console.log(result);
}
/** */
......@@ -151,7 +152,7 @@ class CanvasListItem extends Component {
{children}
</li>
<div>
{manifests.length
{manifests.length > 0
&& manifests.map((o) => (
<button value={o} onClick={(e) => this.handleOpenOtherManifest(e.target.value)}> Ouvrir {o} </button>))
}
......
......@@ -43,8 +43,6 @@ export async function searchManifestAndAddButton(html) {
return data.id;
}
return null;
}).then((data) => {
console.log('Failed to Fatch')
});
}));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment