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/TabDocView.tsx | |
| parent | e2b5bc51c1fa4b4ed026e6582b80086808bdcb70 (diff) | |
| parent | f89783a6c2b768aa3a9b4d85a2ae74212b6306f5 (diff) | |
Merge pull request #905 from browngraphicslab/presentation_v1
Presentation v1
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index 5bdf19a31..fd91d4841 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -127,10 +127,11 @@ export class TabDocView extends React.Component<TabDocViewProps> { //add this new doc to props.Document const curPres = CurrentUserUtils.ActivePresentation; if (curPres) { + if (doc === curPres) { alert("Cannot pin presentation document to itself"); return; } const batch = UndoManager.StartBatch("pinning doc"); const pinDoc = Doc.MakeAlias(doc); pinDoc.presentationTargetDoc = doc; - pinDoc.title = doc.title; + pinDoc.title = doc.title + " - Slide"; pinDoc.presMovement = PresMovement.Zoom; pinDoc.context = curPres; Doc.AddDocToList(curPres, "data", pinDoc); |
