mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
fix: always show workspace list modal when no workspaces (#1321)
This commit is contained in:
@@ -67,6 +67,7 @@ export const WorkspaceDeleteModal = ({
|
||||
<StyledInputContent>
|
||||
<Input
|
||||
onChange={setDeleteStr}
|
||||
data-testid="delete-workspace-input"
|
||||
placeholder={t('Delete Workspace placeholder')}
|
||||
value={deleteStr}
|
||||
width={284}
|
||||
@@ -78,6 +79,7 @@ export const WorkspaceDeleteModal = ({
|
||||
{t('Cancel')}
|
||||
</Button>
|
||||
<Button
|
||||
data-testid="delete-workspace-confirm-button"
|
||||
disabled={!allowDelete}
|
||||
onClick={handleDelete}
|
||||
type="danger"
|
||||
|
||||
@@ -187,6 +187,7 @@ export const GeneralPanel: React.FC<PanelProps> = ({
|
||||
type="danger"
|
||||
shape="circle"
|
||||
style={{ borderRadius: '40px' }}
|
||||
data-testid="delete-workspace-button"
|
||||
onClick={() => {
|
||||
setShowDelete(true);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user