diff options
| author | bobzel <zzzman@gmail.com> | 2020-10-25 15:11:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-25 15:11:19 -0400 |
| commit | 7de5f3a1e8b4e73534e15d778054f9ac431e9e40 (patch) | |
| tree | 832c3be1b02fb9daaab257ce3767a001939edd4f /src/client/views/collections/collectionFreeForm | |
| parent | e2b5bc51c1fa4b4ed026e6582b80086808bdcb70 (diff) | |
| parent | f89783a6c2b768aa3a9b4d85a2ae74212b6306f5 (diff) | |
Merge pull request #905 from browngraphicslab/presentation_v1
Presentation v1
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index 42a601aa2..c6d1c9da2 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -393,11 +393,12 @@ export class MarqueeView extends React.Component<SubCollectionViewProps & Marque const selected = this.marqueeSelect(false); const curPres = Cast(Doc.UserDoc().activePresentation, Doc) as Doc; if (curPres) { + if (doc === curPres) { alert("Cannot pin presentation document to itself"); return; } const pinDoc = Doc.MakeAlias(doc); pinDoc.presentationTargetDoc = doc; pinDoc.presMovement = PresMovement.Zoom; pinDoc.context = curPres; - pinDoc.title = doc.title; + pinDoc.title = doc.title + " - Slide"; Doc.AddDocToList(curPres, "data", pinDoc); if (curPres.expandBoolean) pinDoc.presExpandInlineButton = true; if (!DocumentManager.Instance.getDocumentView(curPres)) { |
