diff options
| author | bobzel <zzzman@gmail.com> | 2020-10-25 18:27:09 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-10-25 18:27:09 -0400 |
| commit | 7cbf4a4bab8325ef1b905e7590355918db5e9ecb (patch) | |
| tree | 95c7edb51ee81996e4189dceead5eca892499056 /src/client/views/collections/TabDocView.tsx | |
| parent | 14d6fa20b47ff49a199fc8c181de6857c37bd227 (diff) | |
| parent | 7de5f3a1e8b4e73534e15d778054f9ac431e9e40 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
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 64e9df974..dcd94a7e6 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); |
