fix: always show workspace list modal when no workspaces (#1321)

This commit is contained in:
Himself65
2023-03-05 00:51:29 -06:00
committed by GitHub
parent 1e11f727fd
commit 3e131603dd
5 changed files with 30 additions and 1 deletions
@@ -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);
}}