Skip to content

355 bug c17 form unpublishing broken#357

Open
AidanLoran wants to merge 4 commits into
mainfrom
355-bug-c17-form-unpublishing-broken
Open

355 bug c17 form unpublishing broken#357
AidanLoran wants to merge 4 commits into
mainfrom
355-bug-c17-form-unpublishing-broken

Conversation

@AidanLoran

Copy link
Copy Markdown
Collaborator

changed function toggleStatus in admin.ts to send a put request to api/form/[id].put.ts (from in-progress h4 issue) to actually update the status of a form server-side

also made a quick change to the api/form/index.ts action 'getOnlyActiveFormsInGroup'. Now,, it and the reader will only query for published forms, fixing unpublish/publish reader side.

@AidanLoran AidanLoran linked an issue Jun 4, 2026 that may be closed by this pull request
@AidanLoran AidanLoran requested review from chanabyte and v-patel June 9, 2026 02:12

@chanabyte chanabyte left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from what I have seen. It would be a good idea to make a comment on how "unpublished" basically means "nonactive" and how being "published" is measured with t/f. I will make a comment below about it.

Comment thread app/composables/useAdmin.ts
Co-authored-by: Swarna Sre <67798786+chanabyte@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] C.17 Form unpublishing broken

2 participants