Open melyux opened 1 year ago
That's very strange. Did you see any error messages (from either the web UI or browser console) when loading the page? Normally the response from the API is passed immediately to the subscriptions
array (JS code here)
That's very strange. Did you see any error messages (from either the web UI or browser console) when loading the page? Normally the response from the API is passed immediately to the
subscriptions
array (JS code here)
No web UI nor console errors. That's why I'm not sure how to debug any further. I only have one plug-in, I'll try adding another one and see if it kickstarts the load upon switching to another plugin. And check the web server error logs, if I can find some. Maybe the internal API request to grab subscriptions per plugin is failing.
I only have one plug-in, I'll try adding another one and see if it kickstarts the load upon switching to another plugin.
Ahh yes that's the issue. I just noticed a bug in the JS code. The subscriptions won't be loaded when you have only one plugin installed. Will fix this in the next update. Thanks for reporting!
Describe the bug The Subscription Manager always shows "No subscriptions found." despite subscriptions existing and working.
To Reproduce Steps to reproduce the behavior:
subscriptions.json
file exists under the plugin.Expected behavior I assume there's normally a table to view and edit existing subscriptions.
Environment (please complete the following information):
Docker (if you are running Mango in a Docker container)
docker-compose.yml
file you are using, or your.env
file.Additional context Add any other context about the problem here. Add screenshots if applicable. (See screenshot above)
I can see that the call to
<base>/api/admin/plugin/subscriptions?plugin=<plugin>
is returning the correct data. I see<p x-show="subscriptions.length === 0" class="uk-text-meta">No subscriptions found.</p>
has thesubscriptions.length === 0
condition on it (not familiar with the framework here), but I can see from a call to the API myself thatsubscriptions
does not have a zero length.