Skip to content

Commit

Permalink
refactor (save case): save case button modal to dcc
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorMatt committed Aug 30, 2020
1 parent eae3b4b commit ac4dd5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/adonisjs/public/author/js/author.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class AuthorManager {
.addEventListener("shown.bs.modal", this.updateSourceField);
*/
$('#settings-modal').on('shown.bs.modal', this.updateSourceField)

$('#btn-save-settings').on('click', await this.caseSave)
// this.caseLoadSelect();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="modal-body">
<h3>Settings</h3>
<form>

<input type="hidden" id="case_id" name="case_id" value="{{caseId}}">
<input type="hidden" id="case_source" name="case_source" value="{{caseSource}}">

Expand Down Expand Up @@ -50,7 +50,9 @@
</div>

<input type="hidden" id="source" name="source">
<button type="button" class="btn btn-secondary" id="btn-save-settings" data-toggle="modal" data-target="#settings-modal">Save</button>
<button type="button" class="btn btn-secondary" id="btn-save-settings" data-toggle="modal" data-target="#settings-modal" >Save</button>
<dcc-trigger action="control/case/save" label="SAVE" location="btn-save-settings" xstyle="out"></dcc-trigger>

<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Cancel</button>
</form>
</div>
Expand Down

0 comments on commit ac4dd5f

Please sign in to comment.