diff --git a/components/dashboard/src/user-settings/Preferences.tsx b/components/dashboard/src/user-settings/Preferences.tsx
index c0347de8fe0184..70f534921fca7d 100644
--- a/components/dashboard/src/user-settings/Preferences.tsx
+++ b/components/dashboard/src/user-settings/Preferences.tsx
@@ -81,14 +81,14 @@ export default function Preferences() {
[toast, setUser, workspaceTimeout, billingMode],
);
- const clearAutostartWorkspaceOptions = useCallback(async () => {
+ const clearCreateWorkspaceOptions = useCallback(async () => {
if (!user) {
return;
}
AdditionalUserData.set(user, { workspaceAutostartOptions: [] });
setUser(user);
await getGitpodService().server.updateLoggedInUser(user);
- toast("Your autostart options were cleared.");
+ toast("Workspace options have been cleared.");
}, [setUser, toast, user]);
return (
@@ -107,9 +107,9 @@ export default function Preferences() {
- Autostart Options
- Forget any saved autostart options for all repositories.
-
- {workspaceContext.data && (
-
- )}
{existingWorkspaces.length > 0 && !createWorkspaceMutation.isStarting && (
Running workspaces on this revision
@@ -462,33 +464,6 @@ export function CreateWorkspacePage() {
);
}
-function RememberOptions(params: { disabled?: boolean; checked: boolean; onChange: (checked: boolean) => void }) {
- const { disabled, checked, onChange } = params;
-
- return (
- <>
-
-
-
-
-
- Don't worry, you can reset this anytime in your{" "}
-
- preferences
-
- .
-
-
- >
- );
-}
-
function tryAuthorize(host: string, scopes?: string[]): Promise
{
const result = new Deferred();
openAuthorizeWindow({