aa6e733ba5
Removes the need for the javascript to be parsed by Blade template engine by using a defined javascript variable with the values that are necessary for checking everything and passing the correct values. This does make it so that if a user does not have permission to do something they could theoretically make the option show up in the context menu, however when they click it, it will simply return an error by the daemon.
32 lines
1,007 B
PHP
32 lines
1,007 B
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| View to Bind JavaScript Vars To
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Set this value to the name of the view (or partial) that
|
|
| you want to prepend all JavaScript variables to.
|
|
| This can be a single view, or an array of views.
|
|
| Example: 'footer' or ['footer', 'bottom']
|
|
|
|
|
*/
|
|
'bind_js_vars_to_this_view' => [
|
|
'layouts.master'
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| JavaScript Namespace
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default, we'll add variables to the global window object. However,
|
|
| it's recommended that you change this to some namespace - anything.
|
|
| That way, you can access vars, like "SomeNamespace.someVariable."
|
|
|
|
|
*/
|
|
'js_namespace' => 'Pterodactyl'
|
|
|
|
];
|