Skip to content

Commit

Permalink
Allow pages to be filtered by deleted entries
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Feb 18, 2024
1 parent 1eb844b commit d70a6dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/src/components/Grid/configs/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const fields: FieldArray = [
{
title: "View",
icon: faEye,
condition: (data: PageEntry) => !data.deleted,
handler: (data: PageEntry) => {
emit(`/published/page?id=${data.id}`);
},
Expand Down
2 changes: 2 additions & 0 deletions lib/galaxy/managers/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def p_tag_filter(term_text: str, quoted: bool):
elif key == "user":
stmt = append_user_filter(stmt, Page, term)
elif key == "is":
if q == "deleted":
show_deleted = True
if q == "published":
stmt = stmt.where(Page.published == true())
if q == "importable":
Expand Down

0 comments on commit d70a6dc

Please sign in to comment.