Explorar o código

修复出现两个编辑按钮的问题

Abbotton %!s(int64=5) %!d(string=hai) anos
pai
achega
7c9b2104b0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/Controllers/PermissionController.php

+ 1 - 0
src/Controllers/PermissionController.php

@@ -68,6 +68,7 @@ class PermissionController extends AdminController
         $tree = new Tree(new $model());
 
         $tree->disableCreateButton();
+        $tree->disableEditButton();
 
         $tree->branch(function ($branch) {
             $payload = "<div class='pull-left' style='min-width:310px'><b>{$branch['name']}</b>&nbsp;&nbsp;[<span class='text-primary'>{$branch['slug']}</span>]";