Add json filter in kanban import

pull/1/head
yflory 4 years ago
parent f7a08af49f
commit b934820d23

@ -1055,7 +1055,7 @@ define([
if (framework.isReadOnly() || framework.isLocked()) { if (framework.isReadOnly() || framework.isLocked()) {
$container.addClass('cp-app-readonly'); $container.addClass('cp-app-readonly');
} }
framework.setFileImporter({}, function (content /*, file */) { framework.setFileImporter({accept: ['.json', 'application/json']}, function (content /*, file */) {
var parsed; var parsed;
try { parsed = JSON.parse(content); } try { parsed = JSON.parse(content); }
catch (e) { return void console.error(e); } catch (e) { return void console.error(e); }

Loading…
Cancel
Save