Skip to content

Commit 9cf7d0e

Browse files
committed
#128 fix save and close
1 parent 0a8c09b commit 9cf7d0e

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

src/views/MainView/MainMenu.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,6 @@ export default {
217217
}
218218
})
219219
220-
// Restore data:
221-
// e.g. if we save predefined inquiry the tab will be created again
222-
// (because of new id) and
223-
// it will be without sql result and has default view - table.
224-
// That's why we need to restore data and view
225-
this.$nextTick(() => {
226-
this.currentInquiryTab.result = dataSet
227-
this.currentInquiryTab.view = tabView
228-
})
229-
230220
// Hide dialogs
231221
this.$modal.hide('save')
232222
this.$modal.hide('inquiry-conflict')

tests/views/MainView/MainMenu.spec.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,19 +1206,6 @@ describe('MainMenu.vue', () => {
12061206

12071207
// check that 'inquirySaved' event was triggered on eventBus
12081208
expect(eventBus.$emit.calledOnceWith('inquirySaved')).to.equal(true)
1209-
1210-
// We saved predefined inquiry, so the tab will be created again
1211-
// (because of new id) and it will be without sql result and has default view - table.
1212-
// That's why we need to restore data and view.
1213-
// Check that result and view are preserved in the currentTab:
1214-
expect(state.currentTab.viewType).to.equal('chart')
1215-
expect(state.currentTab.result).to.eql({
1216-
columns: ['id', 'name'],
1217-
values: [
1218-
[1, 'Harry Potter'],
1219-
[2, 'Drako Malfoy']
1220-
]
1221-
})
12221209
})
12231210

12241211
it('Cancel saving', async () => {

0 commit comments

Comments
 (0)