You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/base/controllers/Admin/Dashboard.php
+33-24Lines changed: 33 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -142,32 +142,41 @@ public function getTemplateData(): array
142
142
return$this->template_data;
143
143
}
144
144
145
-
publicfunctiongetUiTourSteps(): array
145
+
publicfunctiongetUiTour(): array
146
146
{
147
147
return [
148
-
[
149
-
'title' => __('Menu Sidebar'),
150
-
'text' => __('Use the sidebar to navigate through different sections of the admin panel. Click on the icons to expand and access various features and settings.'), // popover['description'] diventa text
151
-
'attachTo' => [
152
-
'element' => '#sidebar',
153
-
'on' => 'right',
154
-
],
155
-
],
156
-
[
157
-
'title' => __('Logout'),
158
-
'text' => __('This is the logout button.'),
159
-
'attachTo' => [
160
-
'element' => '#logout-btn',
161
-
'on' => 'bottom',
162
-
],
163
-
],
164
-
[
165
-
'title' => __('Dark theme switcher'),
166
-
'text' => __('This switches between dark and light theme.'),
167
-
'attachTo' => [
168
-
'element' => '.darkmode-switch .switch',
169
-
'on' => 'left',
170
-
],
148
+
'name' => 'dashboard',
149
+
'steps' => [
150
+
$this->prepareUiStep(
151
+
'#sidebar',
152
+
'Menu Sidebar',
153
+
'Use the sidebar to navigate through different sections of the admin panel. Click on the icons to expand and access various features and settings.',
154
+
'right'
155
+
),
156
+
$this->prepareUiStep(
157
+
'#links',
158
+
'Section links',
159
+
'These links will guide you to the admin section. numbers of each link is the number of elements for that section.',
0 commit comments