Skip to content

Commit

Permalink
Merge pull request #18 from tertek/module-framework-upgrade-v9
Browse files Browse the repository at this point in the history
Module framework upgrade v9
  • Loading branch information
tertek committed Jun 14, 2022
2 parents 190bd32 + bfdfe8c commit b446afc
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],

"framework-version": 6,
"framework-version": 9,

"permissions": [
"redcap_every_page_top"
Expand Down Expand Up @@ -90,7 +90,7 @@
"crons": [],

"compatibility": {
"php-version-min": "5.4.0",
"redcap-version-min": "8.0.0"
"php-version-min": "7.2.5",
"redcap-version-min": "12.0.4"
}
}
2 changes: 1 addition & 1 deletion dist/appEditor.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
return <?= json_encode($module->getEventInfo()) ?>
}

const stph_rhd_getCSRFToken =function() {
return <?= json_encode($module->getCSRFToken()) ?>
}


</script>
<script src="<?= $module->getUrl("./dist/appEditor.js") ?>"></script>
<link rel="stylesheet" href="<?= $module->getUrl('dist/style.css')?>">
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/editor/components/DashboardCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,9 @@ export default {
async saveDashboardData(msg) {
this.isOverlayed = true
const data = {
redcap_csrf_token: stph_rhd_getCSRFToken(),
action: 'save-dashboard-data',
new: JSON.stringify(this.rows)
new: JSON.stringify(this.rows)
}
this.axios({
method: 'POST',
Expand Down

0 comments on commit b446afc

Please sign in to comment.