nodebb-plugin-equipment-calendar 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/library.js
CHANGED
|
@@ -1412,7 +1412,8 @@ async function handleAdminSave(req, res) {
|
|
|
1412
1412
|
timezone: String(req.body.timezone || DEFAULT_SETTINGS.timezone),
|
|
1413
1413
|
paymentTimeoutMinutes: String(req.body.paymentTimeoutMinutes || DEFAULT_SETTINGS.paymentTimeoutMinutes),
|
|
1414
1414
|
showRequesterToAll: (req.body.showRequesterToAll === '1' || req.body.showRequesterToAll === 'on') ? '1' : '0',
|
|
1415
|
-
|
|
1415
|
+
|
|
1416
|
+
ha_apiBaseUrl: String(req.body.ha_apiBaseUrl || DEFAULT_SETTINGS.ha_apiBaseUrl),};
|
|
1416
1417
|
|
|
1417
1418
|
await meta.settings.set(SETTINGS_KEY, values);
|
|
1418
1419
|
return res.redirect('/admin/plugins/equipment-calendar?saved=1');
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
23
23
|
</div>
|
|
24
24
|
|
|
25
|
-
<form id="ec-create-form" method="post" action="/equipment/reservations/create">
|
|
25
|
+
<form id="ec-create-form" method="post" action="{relative_path}/equipment/reservations/create">
|
|
26
26
|
<div class="modal-body">
|
|
27
27
|
<input type="hidden" name="_csrf" value="{config.csrf_token}">
|
|
28
28
|
<input type="hidden" id="ec-start-ms" name="startMs" value="0">
|