Skip to content

Commit

Permalink
Update importModal: use base-modal (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabicalija committed Dec 2, 2024
1 parent c26b8ca commit a88f658
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vue-components/modals/importModal.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<base-modal icon="fas fa-file-import" :title="$t('importDataFromFile')" @keydown.ctrl.enter="save" v-on="$listeners">
<base-modal icon="fas fa-file-import" :title="$t('importDataFromFile')" @open="init" @keydown.ctrl.enter="save" v-on="$listeners">
<template #default>
<div class="row">
<div class="col-12 col-md-6 mb-2">
Expand Down Expand Up @@ -59,7 +59,6 @@
import {i18nService} from "../../js/service/i18nService.js";
import {MainVue} from "../../js/vue/mainVue.js";
export default {
props: ['gridsData', 'reloadFn'],
mixins: [modalMixin],
Expand Down Expand Up @@ -138,6 +137,9 @@
}
this.$refs.fileInput.value = "";
},
init() {
helpService.setHelpLocation('07_dictionaries', '#edit-dictionaries');
}
},
beforeDestroy() {
helpService.revertToLastLocation();
Expand Down

0 comments on commit a88f658

Please sign in to comment.