Skip to content

Commit

Permalink
Fixes on editor and workspace management
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhermeF03 committed May 14, 2024
1 parent 6592390 commit 5c3119d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export const shortcuts = [
blockRules(BlockStyles.hr, '---'),
blockRules(BlockStyles.checked, '-[x]'),
blockRules(BlockStyles.unchecked, '-[]'),
inlineRules(InlineStyles.bold, '**', '__'),
inlineRules(InlineStyles.bold, '**'),
inlineRules(InlineStyles.underline, '__'),
inlineRules(InlineStyles.italic, '*', '_'),
inlineRules(InlineStyles.strikethrough, '~~'),
inlineRules(InlineStyles.underline, '=='),
];
2 changes: 1 addition & 1 deletion code/client/src/ui/pages/home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Home() {
key={workspace.id}
workspace={workspace}
onDelete={() => deleteWorkspace(workspace.id).catch(publishError)}
onRename={name => updateWorkspace({ ...workspace, name }).catch(publishError)}
onRename={name => updateWorkspace(workspace.id, {...workspace, name: name + "-copy" }).catch(publishError)}
onInvite={() => {}}
/>
))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ function CreateWorkspaceDialog({ onCreate }: CreateWorkspaceDialogProps) {
title="Create a new workspace"
fields={[
{ name: 'name', label: 'Workspace Name' },
{ name: 'description', label: 'Workspace Description' },
{ name: 'visibility', label: 'Workspace Visibility' },
{ name: 'tags', label: 'Workspace Tags' },
{ name: 'members', label: 'Workspace Members' },
// { name: 'description', label: 'Workspace Description' },
// { name: 'visibility', label: 'Workspace Visibility' },
// { name: 'tags', label: 'Workspace Tags' },
// { name: 'members', label: 'Workspace Members' },
]}
onSubmit={onCreate}
>
Expand Down
2 changes: 1 addition & 1 deletion code/client/src/ui/pages/workspace/Workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Workspace() {
key={resource.id}
document={resource as DocumentResourceMetadata}
onDelete={() => operations?.deleteResource(resource.id).catch(publishError)}
onDuplicate={() => operations?.createResource(resource.name, ResourceType.DOCUMENT).catch(publishError)}
onDuplicate={() => operations?.createResource(resource.name + "-copy", ResourceType.DOCUMENT).catch(publishError)}
onRename={name => operations?.updateResource(resource.id, { name }).catch(publishError)}
/>
))}
Expand Down

0 comments on commit 5c3119d

Please sign in to comment.