Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Raindrop.io] Close raycast after saving browser tab #16057

Merged
merged 5 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions extensions/raindrop-io/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Raindrop.io Extension Changelog

## [Enhancements] - 2025-01-02

- Close Raycast after saving browser tab ([#16052](https://github.com/raycast/extensions/issues/16052))

## [Enhancements] - 2024-12-20

- Add option to search on title only ([#8939](https://github.com/raycast/extensions/issues/8939) and [#13867](https://github.com/raycast/extensions/issues/13867)).
Expand Down
7 changes: 4 additions & 3 deletions extensions/raindrop-io/src/save_browser_tab.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Toast, showToast } from "@raycast/api";
import { Toast, closeMainWindow, showHUD, showToast } from "@raycast/api";
import { CreateForm } from "./components/CreateForm";
import { useBrowserLink } from "./hooks/useBrowserLink";

Expand All @@ -12,8 +12,9 @@ const AddBrowserTab = () => {
onWillCreate={() => {
showToast(Toast.Style.Animated, "Adding Link...");
}}
onCreated={() => {
showToast(Toast.Style.Success, "Link Added");
onCreated={async () => {
await closeMainWindow({ clearRootSearch: true });
await showHUD("Link added");
}}
onError={() => {
showToast(Toast.Style.Failure, "Error Adding Link");
Expand Down