mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2026-01-07 00:36:08 +08:00
Add missing import modal files
This commit is contained in:
parent
fb1a302249
commit
e1ecc9f584
2 changed files with 46 additions and 0 deletions
11
app/javascript/packs/vue/import_repository_modal.js
Normal file
11
app/javascript/packs/vue/import_repository_modal.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import PerfectScrollbar from 'vue3-perfect-scrollbar';
|
||||
import { createApp } from 'vue/dist/vue.esm-bundler.js';
|
||||
import 'vue3-perfect-scrollbar/dist/vue3-perfect-scrollbar.css';
|
||||
import ImportRepositoryModal from '../../vue/repositories/modals/import.vue';
|
||||
import { mountWithTurbolinks } from './helpers/turbolinks.js';
|
||||
|
||||
const app = createApp({});
|
||||
app.component('ImportRepositoryModal', ImportRepositoryModal);
|
||||
app.use(PerfectScrollbar);
|
||||
app.config.globalProperties.i18n = window.I18n;
|
||||
mountWithTurbolinks(app, '#importRepositoryModal');
|
||||
35
app/javascript/vue/repositories/modals/import.vue
Normal file
35
app/javascript/vue/repositories/modals/import.vue
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<template>
|
||||
<infoModal ref="modal" :startHidden="true" :infoParams="{}" :title="'UPDATE'" :helpText="'HELP ME'">
|
||||
UPDAE
|
||||
</infoModal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* global HelperModule */
|
||||
|
||||
import axios from '../../../packs/custom_axios.js';
|
||||
import InfoModal from '../../shared/info_modal.vue';
|
||||
|
||||
export default {
|
||||
name: 'ImportRepositoryModal',
|
||||
components: {InfoModal},
|
||||
props: {
|
||||
repositoryUrl: String, required: true
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
infoParams: {}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
window.importRepositoryModalComponent = this;
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
open() {
|
||||
this.$refs.modal.open();
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Loading…
Add table
Reference in a new issue