mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-07 15:33:56 +09:00
fixes for saving non config items
This commit is contained in:
@@ -139,12 +139,11 @@ class ItemController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
$config = json_encode($request->input('config'));
|
||||
if($config) {
|
||||
$request->merge([
|
||||
'description' => $config
|
||||
]);
|
||||
}
|
||||
$config = $request->input('config');
|
||||
$config = (!empty($config)) ? json_encode($config) : null;
|
||||
$request->merge([
|
||||
'description' => $config
|
||||
]);
|
||||
|
||||
//die(print_r($request->input('config')));
|
||||
|
||||
@@ -202,12 +201,11 @@ class ItemController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
$config = json_encode($request->input('config'));
|
||||
if($config) {
|
||||
$request->merge([
|
||||
'description' => $config
|
||||
]);
|
||||
}
|
||||
$config = $request->input('config');
|
||||
$config = (!empty($config)) ? json_encode($config) : null;
|
||||
$request->merge([
|
||||
'description' => $config
|
||||
]);
|
||||
|
||||
|
||||
Item::find($id)->update($request->all());
|
||||
|
||||
@@ -61,8 +61,9 @@ class Item extends Model
|
||||
$class = $output->type;
|
||||
$sap = new $class();
|
||||
$view = $sap->configDetails();
|
||||
$output->view = $view;
|
||||
}
|
||||
$output->view = $view;
|
||||
|
||||
}
|
||||
return (object)$output;
|
||||
}
|
||||
|
||||
2
public/js/app.js
vendored
2
public/js/app.js
vendored
@@ -23,7 +23,7 @@ $.when( $.ready ).then(function() {
|
||||
var container = $(this);
|
||||
var max_timer = 30000;
|
||||
var timer = 1000;
|
||||
(function worker() {
|
||||
(function worker() {
|
||||
$.ajax({
|
||||
url: '/get_stats/'+id,
|
||||
success: function(data) {
|
||||
|
||||
2
resources/assets/js/app.js
vendored
2
resources/assets/js/app.js
vendored
@@ -14,7 +14,7 @@ $.when( $.ready ).then(function() {
|
||||
var container = $(this);
|
||||
var max_timer = 30000;
|
||||
var timer = 1000;
|
||||
(function worker() {
|
||||
(function worker() {
|
||||
$.ajax({
|
||||
url: '/get_stats/'+id,
|
||||
success: function(data) {
|
||||
|
||||
Reference in New Issue
Block a user