ui-soxo-bootstrap-core 2.4.25-dev.16 → 2.4.25-dev.17
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.
|
@@ -167,9 +167,12 @@ export default function SideMenu({ loading, modules = [], callback, appSettings,
|
|
|
167
167
|
setSelectedKeys([key]);
|
|
168
168
|
|
|
169
169
|
// Keep parent open
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
|
|
171
|
+
if (parentKey) {
|
|
172
|
+
setOpenKeys((prev) =>
|
|
173
|
+
prev.includes(parentKey) ? prev : [...prev, parentKey]
|
|
174
|
+
);
|
|
175
|
+
}
|
|
173
176
|
|
|
174
177
|
history.push(menu.path);
|
|
175
178
|
setMenu(menu);
|
package/core/models/index.js
CHANGED
|
@@ -32,6 +32,10 @@ import DashboardModel from './dashboard/dashboard';
|
|
|
32
32
|
|
|
33
33
|
import CoreScript from './core-scripts/core-scripts';
|
|
34
34
|
|
|
35
|
+
import StaffAdd from './staff/components/staff-add/staff-add';
|
|
36
|
+
|
|
37
|
+
import DoctorAdd from './doctor/components/doctor-add/doctor-add'
|
|
38
|
+
|
|
35
39
|
import UserRole from './user-roles/user-roles';
|
|
36
40
|
|
|
37
41
|
const MenusAPI = new Menu();
|
|
@@ -90,5 +94,7 @@ export {
|
|
|
90
94
|
|
|
91
95
|
CoreScripts,
|
|
92
96
|
|
|
93
|
-
Preferences
|
|
97
|
+
Preferences,
|
|
98
|
+
StaffAdd,
|
|
99
|
+
DoctorAdd
|
|
94
100
|
};
|