Fix test button

This commit is contained in:
Kode 2022-03-17 19:03:06 +00:00
parent 79d53af339
commit 10afffb71d
5 changed files with 8 additions and 9 deletions

View file

@ -379,8 +379,8 @@ class ItemController extends Controller
{ {
$data = $request->input('data'); $data = $request->input('data');
//$url = $data[array_search('url', array_column($data, 'name'))]['value']; //$url = $data[array_search('url', array_column($data, 'name'))]['value'];
$single = Application::single($data['type']);
$app = $data['type']; $app = $single->class;
$app_details = new $app(); $app_details = new $app();
$app_details->config = (object)$data; $app_details->config = (object)$data;

1
public/css/app.css vendored
View file

@ -1,4 +1,3 @@
@charset "UTF-8";
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html { html {
font-family: sans-serif; font-family: sans-serif;

6
public/js/app.js vendored
View file

@ -620,14 +620,14 @@ $.when($.ready).then(function () {
drop: function( event, ui ) { drop: function( event, ui ) {
var tag = $( this ).data('id'); var tag = $( this ).data('id');
var item = $( ui.draggable ).data('id'); var item = $( ui.draggable ).data('id');
$.get('tag/add/'+tag+'/'+item, function(data) { $.get('tag/add/'+tag+'/'+item, function(data) {
if(data == 1) { if(data == 1) {
$( ui.draggable ).remove(); $( ui.draggable ).remove();
} else { } else {
alert('not added'); alert('not added');
} }
}); });
} }
});*/ });*/
$('#sortable').sortable({ $('#sortable').sortable({
@ -716,7 +716,7 @@ $.when($.ready).then(function () {
}).on('click', '#test_config', function (e) { }).on('click', '#test_config', function (e) {
e.preventDefault(); e.preventDefault();
var apiurl = $('#create input[name=url]').val(); var apiurl = $('#create input[name=url]').val();
var override_url = $('#create input[name="config[override_url]"]').val(); var override_url = $('#sapconfig input[name="config[override_url]"]').val();
if (override_url.length && override_url != '') { if (override_url.length && override_url != '') {
apiurl = override_url; apiurl = override_url;

View file

@ -1,4 +1,4 @@
{ {
"/css/app.css": "/css/app.css?id=bc18c3a0e8475fe00a5a", "/css/app.css": "/css/app.css?id=ad45b1705b7f7906db0b",
"/js/app.js": "/js/app.js?id=c95edea425171c6ce8f6" "/js/app.js": "/js/app.js?id=5446aeb4aa754e641c77"
} }

View file

@ -205,7 +205,7 @@ $.when( $.ready ).then(function() {
e.preventDefault(); e.preventDefault();
var apiurl = $('#create input[name=url]').val(); var apiurl = $('#create input[name=url]').val();
var override_url = $('#create input[name="config[override_url]"]').val(); var override_url = $('#sapconfig input[name="config[override_url]"]').val();
if(override_url.length && override_url != '') { if(override_url.length && override_url != '') {
apiurl = override_url; apiurl = override_url;
} }