Add portfolio website link field and card open-link control.

Stay on the current list page after move-to-top; only toast success.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-23 16:46:13 +03:30
co-authored by Cursor
parent 85524544ca
commit c289de5d2e
7 changed files with 76 additions and 7 deletions
@@ -182,11 +182,7 @@ export function PortfolioListPage() {
try {
await updatePortfolio(id, { moveToTop: true })
showToast(t('portfolio.list.toast.movedUp'), 'success')
// Absolute top lives on page 1 — jump there so the move is visible.
writeListQuery(appliedName, appliedCategoryId, 1)
if (currentPage === 1) {
await loadPortfolios(1)
}
await loadPortfolios(currentPage)
} catch (err) {
if (err instanceof ApiError) {
setError(err.message)