aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MainView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r--src/client/views/MainView.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index 7fe35494d..ee58c684a 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -131,6 +131,8 @@ export class MainView extends React.Component {
window.addEventListener("keydown", KeyManager.Instance.handle);
// this.executeGooglePhotosRoutine();
+ const imageTag = GooglePhotosClientUtils.ContentCategories;
+ GooglePhotosClientUtils.Search({ included: [imageTag.ANIMALS] });
reaction(() => {
let workspaces = CurrentUserUtils.UserDocument.workspaces;
@@ -155,7 +157,7 @@ export class MainView extends React.Component {
doc.caption = "Well isn't this a nice cat image!";
let photos = await GooglePhotosClientUtils.endpoint();
let albumId = (await photos.albums.list(50)).albums.filter((album: any) => album.title === "This is a generically created album!")[0].id;
- console.log(await GooglePhotosClientUtils.UploadMedia([doc], { id: albumId }));
+ console.log(await GooglePhotosClientUtils.UploadImageDocuments([doc], { id: albumId }));
}
componentWillUnMount() {