(core) Fix "Copy Link" in UserManager when its opened from a DocMenu page.

Test Plan: Added a check to the test case verifying the copied link.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2673
This commit is contained in:
Dmitry S
2020-11-25 21:29:13 -05:00
parent 5172cae1c2
commit 9a7a42bc59
3 changed files with 14 additions and 12 deletions

View File

@@ -310,7 +310,8 @@ export function makeDocOptionsMenu(home: HomeModel, doc: Document, renaming: Obs
permissionData: api.getDocAccess(doc.id),
activeEmail: user ? user.email : null,
resourceType: 'document',
resourceId: doc.id
resourceId: doc.id,
linkToCopy: urlState().makeUrl(docUrl(doc)),
});
}