Преглед на файлове

Stattree - position index in tree node text

Vijayakrishnan преди 3 години
родител
ревизия
2ef9d4f6db
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      app/Http/Controllers/StatTreeController.php

+ 3 - 1
app/Http/Controllers/StatTreeController.php

@@ -580,7 +580,9 @@ class StatTreeController extends Controller
             $children[] = $this->lineObject($child);
         }
         return [
-            "text" => '<span class="stat-tree-anchor">' . $line->displayLabel() . '</span>' .
+            "text" => '<span class="stat-tree-anchor">' .
+                '<span class="text-secondary text-sm">' . ($line->tree_order_position_index + 1) . '.</span> ' .
+                $line->displayLabel() . '</span>' .
                 (count($argsLabel) ? '<span class="text-info text-sm ml-2">[' . implode(', ', $argsLabel) . ']</span>' : '') .
                 '<span class="ml-2 text-secondary line-count-label">(' .
                 (is_null($line->last_refresh_count) ? '…' :