mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: show dormant workspaces by default (#11053)
This commit is contained in:
@@ -7289,12 +7289,7 @@ func (q *FakeQuerier) GetAuthorizedWorkspaces(ctx context.Context, arg database.
|
||||
}
|
||||
}
|
||||
|
||||
// We omit locked workspaces by default.
|
||||
if arg.IsDormant == "" && workspace.DormantAt.Valid {
|
||||
continue
|
||||
}
|
||||
|
||||
if arg.IsDormant != "" && !workspace.DormantAt.Valid {
|
||||
if arg.Dormant && !workspace.DormantAt.Valid {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user