PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | resources/js/hooks/useModules.ts +16 -0 3.0.14.2 → 3.0.16 View file →
@@ -163,8 +163,16 @@
163 163 // Webhooks — Agency-only sidebar menu, same instant-toggle pattern.
164 164 window.yatraAdmin.webhooksEnabled = enabledModules.some(
165 165 (m) => m.slug === "webhooks",
166 166 );
167 + // Scheduled Payments — decides whether Payments is a plain menu item
168 + // or a parent with All Payments / Scheduled beneath it. Same
169 + // instant-toggle pattern, so the submenu appears and disappears as the
170 + // module is switched, without reloading the admin.
171 + window.yatraAdmin.scheduledPaymentsEnabled = enabledModules.some(
172 + (m) =>
173 + m.slug === "scheduled_payments" || m.slug === "scheduled-payments",
174 + );
167 175 // Team & Access — Agency-only sidebar menu. Also drives the
168 176 // teamEnabled flag that <Can/> reads to decide whether the
169 177 // capability gates apply (vs admin fallback).
170 178 window.yatraAdmin.teamEnabled = enabledModules.some(
@@ -308,8 +316,16 @@
308 316 );
309 317 // Webhooks — Agency-only sidebar menu, same instant-toggle pattern.
310 318 window.yatraAdmin.webhooksEnabled = enabledModules.some(
311 319 (m) => m.slug === "webhooks",
320 + );
321 + // Scheduled Payments — decides whether Payments is a plain menu item
322 + // or a parent with All Payments / Scheduled beneath it. Same
323 + // instant-toggle pattern, so the submenu appears and disappears as the
324 + // module is switched, without reloading the admin.
325 + window.yatraAdmin.scheduledPaymentsEnabled = enabledModules.some(
326 + (m) =>
327 + m.slug === "scheduled_payments" || m.slug === "scheduled-payments",
312 328 );
313 329 // Team & Access — Agency-only sidebar menu. Also drives the
314 330 // teamEnabled flag that <Can/> reads to decide whether the
315 331 // capability gates apply (vs admin fallback).