mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
minor fixes
This commit is contained in:
@@ -36,7 +36,7 @@ function NotificationListItem({ notification, onNavigate }: Props) {
|
||||
const collection = collectionId ? collections.get(collectionId) : undefined;
|
||||
const [processing, setProcessing] = React.useState(false);
|
||||
const [selectedPermission, setSelectedPermission] =
|
||||
React.useState<DocumentPermission>(DocumentPermission.ReadWrite);
|
||||
React.useState<DocumentPermission>(DocumentPermission.Read);
|
||||
|
||||
const isAccessRequest =
|
||||
notification.event === NotificationEventType.RequestDocumentAccess &&
|
||||
|
||||
@@ -304,7 +304,6 @@ describe("#accessRequests.approve", () => {
|
||||
teamId: team.id,
|
||||
});
|
||||
|
||||
// add non-manager to the document with editor access
|
||||
await UserMembership.create({
|
||||
userId: admin.id,
|
||||
documentId: document.id,
|
||||
@@ -461,7 +460,6 @@ describe("#accessRequests.dismiss", () => {
|
||||
body: {
|
||||
token: admin.getJwtToken(),
|
||||
id: accessRequest.id,
|
||||
permission: DocumentPermission.ReadWrite,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ export const AccessRequestsApproveSchema = BaseSchema.extend({
|
||||
body: BaseIdSchema.extend({
|
||||
permission: z
|
||||
.nativeEnum(DocumentPermission)
|
||||
.default(DocumentPermission.ReadWrite),
|
||||
.default(DocumentPermission.Read),
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user