aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-09-12 14:38:09 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-09-12 14:38:09 -0400
commitcb04cae3e5b7d4ae3fb2e59afe866d95320aab14 (patch)
tree687fd3ffbddcaf58a9e2f55c4ecf04ff3f30ebe3 /src/client
parent124363d86b3061007bf31999f84c6589f7028cb3 (diff)
now support custom view
Diffstat (limited to 'src/client')
-rw-r--r--src/client/apis/google_docs/GooglePhotosClientUtils.ts2
-rw-r--r--src/client/views/MainView.tsx6
2 files changed, 3 insertions, 5 deletions
diff --git a/src/client/apis/google_docs/GooglePhotosClientUtils.ts b/src/client/apis/google_docs/GooglePhotosClientUtils.ts
index 63cbc8867..3dac1d65c 100644
--- a/src/client/apis/google_docs/GooglePhotosClientUtils.ts
+++ b/src/client/apis/google_docs/GooglePhotosClientUtils.ts
@@ -306,7 +306,7 @@ export namespace GooglePhotos {
return;
}
const url = data.url.href;
- const description = parseDescription(source, descriptionKey);
+ const description = parseDescription(Doc.MakeAlias(source), descriptionKey);
media.push({ url, description });
});
if (media.length) {
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index 85bf0344b..f7b66cae3 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -273,10 +273,8 @@ export class MainView extends React.Component {
if (initialized && received) {
DocServer.GetRefField(received).then(field => {
if (field instanceof Doc && field.viewType !== CollectionViewType.Docking) {
- const target = Doc.MakeAlias(field);
- const artificialParent = Docs.Create.FreeformDocument([target], { title: `View of ${StrCast(field.title)}` });
- CollectionDockingView.Instance.AddRightSplit(artificialParent, undefined);
- DocumentManager.Instance.jumpToDocument(target, true, undefined, undefined, undefined, artificialParent);
+ CollectionDockingView.Instance.AddRightSplit(field, undefined);
+ DocumentManager.Instance.jumpToDocument(field, true, undefined, undefined, undefined, undefined);
}
});
}