mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-20 04:24:23 -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.
43 lines
919 B
Vue
43 lines
919 B
Vue
|
|
<style scoped>
|
|
</style>
|
|
|
|
<template>
|
|
<div class="box" v-if="errors">
|
|
<div class="box-body">
|
|
<div class="alert alert-warning">
|
|
<strong>Warning</strong> Some Errors occured while importing
|
|
</div>
|
|
|
|
<div class="errors-table">
|
|
<table class="table table-striped table-bordered" id="errors-table">
|
|
<thead>
|
|
<th>Item</th>
|
|
<th>Errors</th>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="(error, item) in errors">
|
|
<td>{{ item }}</td>
|
|
<td v-for="(value, field) in error">
|
|
<b>{{ field }}:</b>
|
|
<span v-for="errorString in value">{{errorString[0]}}</span>
|
|
<br />
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
/*
|
|
* The component's data.
|
|
*/
|
|
props: ['errors'],
|
|
}
|
|
|
|
</script>
|