π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π Fixes sabnzbd path prefix configurable (#1965)
Alicia Sykes37e6a9f53252
diff --git a/src/components/Widgets/Sabnzbd.vue b/src/components/Widgets/Sabnzbd.vueindex 630a0391..02c35321 100644--- a/src/components/Widgets/Sabnzbd.vue+++ b/src/components/Widgets/Sabnzbd.vue@@ -50,8 +50,10 @@ export default {},computed: {endpoint() {- const { apiKey, sabnzbdUrl } = this.options;- return `${sabnzbdUrl}/sabnzbd/api?output=json&apikey=${apiKey}&mode=queue`;+ const { apiKey, sabnzbdUrl, pathPrefix } = this.options;+ const base = (sabnzbdUrl || '').replace(/\/+$/, '');+ const prefix = (pathPrefix !== undefined ? pathPrefix : '/sabnzbd').replace(/\/+$/, '');+ return `${base}${prefix}/api?output=json&apikey=${apiKey}&mode=queue`;},},methods: {