fix saving branch prefix, fixes #260

This commit is contained in:
azivner 2018-12-29 10:35:44 +01:00
parent e02eca87b0
commit 3f8e8f8561
2 changed files with 24 additions and 19 deletions

View File

@ -2,6 +2,7 @@ import treeService from '../services/tree.js';
import server from '../services/server.js';
import treeCache from "../services/tree_cache.js";
import treeUtils from "../services/tree_utils.js";
import infoService from "../services/info.js";
const $dialog = $("#branch-prefix-dialog");
const $form = $("#branch-prefix-form");
@ -35,6 +36,8 @@ async function savePrefix() {
await treeService.setPrefix(branchId, prefix);
$dialog.modal('hide');
infoService.showMessage("Branch prefix has been saved.");
}
$form.submit(() => {

View File

@ -1,5 +1,6 @@
<div id="branch-prefix-dialog" class="modal fade mx-auto" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" role="document">
<form id="branch-prefix-form">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title mr-auto">Edit branch prefix</h5>
@ -27,5 +28,6 @@
<button class="btn btn-primary btn-sm">Save</button>
</div>
</div>
</form>
</div>
</div>