8000 added more updates for custom queries, to prevent cross browser overw… · msand/arangodb@ef5c77b · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit ef5c77b

Browse files
committed
added more updates for custom queries, to prevent cross browser overwriting
1 parent acefe19 commit ef5c77b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

js/apps/system/aardvark/frontend/js/views/queryView.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@
371371
},
372372

373373
addAQL: function () {
374+
//update queries first, before showing
375+
this.getAQL();
376+
this.getSystemQueries();
377+
374378
//render options
375379
this.createCustomQueryModal();
376380
$('#new-query-name').val($('#querySelect').val());
@@ -435,6 +439,11 @@
435439

436440
saveAQL: function (e) {
437441
e.stopPropagation();
442+
443+
//update queries first, before writing
444+
this.getAQL();
445+
this.getSystemQueries();
446+
438447
var inputEditor = ace.edit("aqlEditor");
439448
var saveName = $('#new-query-name').val();
440449
var isUpdate = $('#modalButton1').text() === 'Update';

0 commit comments

Comments
 (0)
0