This commit is contained in:
Kode 2018-10-29 19:43:08 +00:00
parent 4fba596909
commit 488fee7b4b
6 changed files with 7 additions and 4 deletions

View file

@ -311,7 +311,7 @@ class ItemController extends Controller
// live details
if($app instanceof \App\EnhancedApps) {
$output['config'] = $app_details->name.'.config';
$output['config'] = className($app_details->name).'.config';
} else {
$output['config'] = null;
}

1
public/css/app.css vendored
View file

@ -1290,6 +1290,7 @@ hr {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
text-align: left;
}
.livestats-container .livestats strong {

View file

@ -1,4 +1,4 @@
{
"/css/app.css": "/css/app.css?id=2d647cf8beb1a6515945",
"/css/app.css": "/css/app.css?id=458c92fc5ea880eda1b6",
"/js/app.js": "/js/app.js?id=8dc4a6ea723d0df7469d"
}

View file

@ -879,6 +879,7 @@ hr {
opacity: 0.5;
line-height: 1;
display: flex;
text-align: left;
}
strong {
display: block;

View file

@ -3,7 +3,8 @@
{!! Form::hidden('config[enabled]', '0') !!}
<label class="switch">
<?php
$checked = $item->enabled();
$checked = false;
if(isset($item) && !empty($item)) $checked = $item->enabled();
$set_checked = ($checked) ? ' checked="checked"' : '';
?>
<input type="checkbox" name="config[enabled]" value="1"<?php echo $set_checked;?> />

View file

@ -42,7 +42,7 @@ Route::post('test_config', 'ItemController@testConfig')->name('test_config');
Route::get('/get_stats/{id}', 'ItemController@getStats')->name('get_stats');
Route::get('view/{name_view}', function ($name_view) {
return view('SupportedApps::'.$name_view);
return view('SupportedApps::'.$name_view)->render();
});
Route::get('titlecolour', function (Request $request) {