mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
5ba2ec881c
* Begin work on vueifying the importer * Beginning work on migrating the importer to use a vue/components for future interactivity Update JS More importer work. Move to a vue based modal, begin handling of processing. Still need to port error messages. More importer work. Move to a vue based modal, begin handling of processing. Still need to port error messages. Update importer. Add error display. Fix modal, update vue-strap to vue2 More progress. Add select2 vue bits. * Move to querying the db to find importer matches. It scales better on large datasets. Fix select2 related issues. We were trying to initialize it twice, which led to the custom data being overwritten. * Better error handling on uploads and deletion of files. Restore progressbar on upload. * Add support for generic exception reporting if app.debug is enabled. * Handle Http 500 errors better. Display errors if debug is enabled. Assorted cleanups. * Fix codacy issues, remove unused methods. * Only bind vue to the importer for now. * Load vue for passport as well.
37 lines
825 B
Vue
37 lines
825 B
Vue
|
|
<style scoped>
|
|
</style>
|
|
|
|
<template>
|
|
<div class="col-md-12" :class="alertType">
|
|
<div class="alert" :class="alertClassName">
|
|
<button type="button" class="close" @click="hideEvent">×</button>
|
|
<i class="fa fa-check faa-pulse animated" v-show="alertType == 'success'"></i>
|
|
<strong>{{ title }} </strong>
|
|
<slot></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
/*
|
|
* The component's data.
|
|
*/
|
|
props: ['alertType', 'title'],
|
|
|
|
computed: {
|
|
alertClassName() {
|
|
return 'alert-' + this.alertType;
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
hideEvent() {
|
|
this.$emit('hide');
|
|
}
|
|
}
|
|
}
|
|
|
|
</script>
|