Repository: TabbyML/tabby
File: ee/tabby-ui/app/(dashboard)/settings/team/components/user-table.tsx (TypeScript)

Code before:
              onSelect={() => onUpdateUserActive(user.node, false)}
              className="cursor-pointer"
            >
              <span className="ml-2">Deactivate</span>
            </DropdownMenuItem>
          )}
          {!user.node.active && (
            <DropdownMenuItem
              onSelect={() => onUpdateUserActive(user.node, true)}
              className="cursor-pointer"
            >
              <span className="ml-2">Activate</span>
            </DropdownMenuItem>
          )}
          <DropdownMenuItem
            onSelect={() => setOpen(true)}
            className="cursor-pointer gap-1"
          >
            <span className="ml-2">Initate resetting password</span>
          </DropdownMenuItem>
        </DropdownMenuContent>
      </DropdownMenu>
      <AlertDialog open={open} onOpenChange={onOpenChange}>
        <AlertDialogContent>
          <AlertDialogHeader>
            <AlertDialogTitle>Initiate resetting password</AlertDialogTitle>
            <AlertDialogDescription>
              Are you sure you want to create a password reset link for{' '}
              <span className="font-bold">
                {user.node.name || user.node.email}
              </span>
              ?
            </AlertDialogDescription>
          </AlertDialogHeader>
          <AlertDialogFooter>
            <AlertDialogCancel disabled={submitting}>Cancel</AlertDialogCancel>
            <AlertDialogAction
              className={cn(buttonVariants(), 'gap-1')}
              disabled={submitting}
              onClick={handleGenerateResetPassworkURL}
            >
              {submitting && <IconSpinner />}
              Yes
            </AlertDialogAction>
          </AlertDialogFooter>
        </AlertDialogContent>
      </AlertDialog>
    </>
  )
}


Review comment (suggestion):
```suggestion
            <AlertDialogTitle>Reset password</AlertDialogTitle>
```

Code after:
              onSelect={() => onUpdateUserActive(user.node, false)}
              className="cursor-pointer"
            >
              <span className="ml-2">Deactivate</span>
            </DropdownMenuItem>
          )}
          {!user.node.active && (
            <DropdownMenuItem
              onSelect={() => onUpdateUserActive(user.node, true)}
              className="cursor-pointer"
            >
              <span className="ml-2">Activate</span>
            </DropdownMenuItem>
          )}
          <DropdownMenuItem
            onSelect={() => setOpen(true)}
            className="cursor-pointer gap-1"
          >
            <span className="ml-2">Reset password</span>
          </DropdownMenuItem>
        </DropdownMenuContent>
      </DropdownMenu>
      <AlertDialog open={open} onOpenChange={onOpenChange}>
        <AlertDialogContent>
          <AlertDialogHeader>
            <AlertDialogTitle>Reset password</AlertDialogTitle>
            <AlertDialogDescription>
              By clicking {'"'}Yes{'"'}, a password reset link will be generated
              for{' '}
              <span className="font-bold">
                {user.node.name || user.node.email}
              </span>
              . The password won&apos;t be modified until the user follows the
              instructions in the link to make the change.
            </AlertDialogDescription>
          </AlertDialogHeader>
          <AlertDialogFooter>
            <AlertDialogCancel disabled={submitting}>Cancel</AlertDialogCancel>
            <AlertDialogAction
              className={cn(buttonVariants(), 'gap-1')}
              disabled={submitting}
              onClick={handleGenerateResetPassworkURL}
            >
              {submitting && <IconSpinner />}
              Yes
            </AlertDialogAction>
          </AlertDialogFooter>
        </AlertDialogContent>
      </AlertDialog>
    </>
  )