@@ 36-43 (lines=8) @@ | ||
33 | 'data-toggle' => 'modal', |
|
34 | 'data-target' => '#modal', |
|
35 | 'href' => 'admin/addons/options/{entry.namespace}', |
|
36 | 'enabled' => function (Addon $entry) { |
|
37 | ||
38 | if (!$entry instanceof Module && !$entry instanceof Extension) { |
|
39 | return false; |
|
40 | } |
|
41 | ||
42 | return !$entry->isInstalled(); |
|
43 | }, |
|
44 | ], |
|
45 | 'migrate' => [ |
|
46 | 'class' => 'btn-success', |
|
@@ 53-60 (lines=8) @@ | ||
50 | 'data-match' => function (Addon $entry) { |
|
51 | return $entry->getTitle(); |
|
52 | }, |
|
53 | 'enabled' => function (Addon $entry) { |
|
54 | ||
55 | if (!$entry instanceof Module && !$entry instanceof Extension) { |
|
56 | return false; |
|
57 | } |
|
58 | ||
59 | return $entry->isInstalled(); |
|
60 | }, |
|
61 | ], |
|
62 | 'uninstall' => [ |
|
63 | 'button' => 'prompt', |
|
@@ 70-77 (lines=8) @@ | ||
67 | 'data-match' => function (Addon $entry) { |
|
68 | return $entry->getTitle(); |
|
69 | }, |
|
70 | 'enabled' => function (Addon $entry) { |
|
71 | ||
72 | if (!$entry instanceof Module && !$entry instanceof Extension) { |
|
73 | return false; |
|
74 | } |
|
75 | ||
76 | return $entry->isInstalled(); |
|
77 | }, |
|
78 | ], |
|
79 | ] |
|
80 | ); |