mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-09 04:47:38 -08:00
Merge branch 'develop'
This commit is contained in:
commit
ad2821b4ab
|
@ -29,7 +29,7 @@ class ImportsTransformer
|
||||||
'header_row' => $import->header_row,
|
'header_row' => $import->header_row,
|
||||||
'first_row' => $import->first_row,
|
'first_row' => $import->first_row,
|
||||||
'field_map' => $import->field_map,
|
'field_map' => $import->field_map,
|
||||||
|
'process_url'=> route('api.imports.importFile', $import->id),
|
||||||
];
|
];
|
||||||
|
|
||||||
return $array;
|
return $array;
|
||||||
|
|
|
@ -21,7 +21,7 @@ class Statuslabel extends SnipeModel
|
||||||
|
|
||||||
protected $rules = array(
|
protected $rules = array(
|
||||||
'name' => 'required|string|unique_undeleted',
|
'name' => 'required|string|unique_undeleted',
|
||||||
'notes' => 'string',
|
'notes' => 'string|nullable',
|
||||||
'deployable' => 'required',
|
'deployable' => 'required',
|
||||||
'pending' => 'required',
|
'pending' => 'required',
|
||||||
'archived' => 'required',
|
'archived' => 'required',
|
||||||
|
|
File diff suppressed because one or more lines are too long
6882
build/css/app.css
6882
build/css/app.css
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -3,10 +3,6 @@
|
||||||
"/css/AdminLTE.css": "/css/AdminLTE.css",
|
"/css/AdminLTE.css": "/css/AdminLTE.css",
|
||||||
"/css/app.css": "/css/app.css",
|
"/css/app.css": "/css/app.css",
|
||||||
"/css/overrides.css": "/css/overrides.css",
|
"/css/overrides.css": "/css/overrides.css",
|
||||||
"/vue.js.map": "/vue.js.map",
|
|
||||||
"/css/AdminLTE.css.map": "/css/AdminLTE.css.map",
|
|
||||||
"/css/app.css.map": "/css/app.css.map",
|
|
||||||
"/css/overrides.css.map": "/css/overrides.css.map",
|
|
||||||
"/public/css/dist/all.css": "/public/css/dist/all.css",
|
"/public/css/dist/all.css": "/public/css/dist/all.css",
|
||||||
"/public/js/dist/all.js": "/public/js/dist/all.js"
|
"/public/js/dist/all.js": "/public/js/dist/all.js"
|
||||||
}
|
}
|
52911
build/vue.js
52911
build/vue.js
File diff suppressed because one or more lines are too long
BIN
public/css/dist/all.css
vendored
BIN
public/css/dist/all.css
vendored
Binary file not shown.
BIN
public/js/dist/all.js
vendored
BIN
public/js/dist/all.js
vendored
Binary file not shown.
|
@ -67,7 +67,7 @@ tr {
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['file', 'customFieldUrl', 'importProcessUrl'],
|
props: ['file', 'customFieldUrl'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
activeFile: this.file,
|
activeFile: this.file,
|
||||||
|
@ -142,12 +142,6 @@ tr {
|
||||||
this.populateSelect2ActiveItems();
|
this.populateSelect2ActiveItems();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
processUrl() {
|
|
||||||
// Because we need to pass a parameter to the laravel route function
|
|
||||||
// We get a url 'http://localhost/api/v1/imports/process/DUMMYTEXT'
|
|
||||||
// But we want to customize that to /api/v1/imports/process/this_file
|
|
||||||
return this.importProcessUrl.replace('DUMMYTEXT', this.file.id)
|
|
||||||
},
|
|
||||||
columns() {
|
columns() {
|
||||||
switch(this.options.importType) {
|
switch(this.options.importType) {
|
||||||
case 'asset':
|
case 'asset':
|
||||||
|
@ -175,7 +169,7 @@ tr {
|
||||||
},
|
},
|
||||||
postSave() {
|
postSave() {
|
||||||
this.statusText = "Processing...";
|
this.statusText = "Processing...";
|
||||||
this.$http.post(this.processUrl, {
|
this.$http.post(this.file.process_url, {
|
||||||
'import-update': this.options.update,
|
'import-update': this.options.update,
|
||||||
'import-type': this.options.importType,
|
'import-type': this.options.importType,
|
||||||
'column-mappings': this.columnMappings
|
'column-mappings': this.columnMappings
|
||||||
|
|
|
@ -36,9 +36,6 @@ th {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* Prepare the component (Vue 2.x).
|
|
||||||
*/
|
|
||||||
mounted() {
|
mounted() {
|
||||||
window.eventHub.$on('importErrors', this.updateImportErrors);
|
window.eventHub.$on('importErrors', this.updateImportErrors);
|
||||||
this.fetchFiles();
|
this.fetchFiles();
|
||||||
|
|
|
@ -66,7 +66,6 @@
|
||||||
:key="currentFile.id"
|
:key="currentFile.id"
|
||||||
:file="currentFile"
|
:file="currentFile"
|
||||||
customFieldUrl="{{route('api.customfields.index')}}"
|
customFieldUrl="{{route('api.customfields.index')}}"
|
||||||
importProcessUrl="{{route('api.imports.importFile','DUMMYTEXT')}}"
|
|
||||||
@alert="updateAlert(alert)">
|
@alert="updateAlert(alert)">
|
||||||
</import-file>
|
</import-file>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
<p>{{ trans('admin/statuslabels/table.info') }}</p>
|
<p>{{ trans('admin/statuslabels/table.info') }}</p>
|
||||||
|
|
||||||
<p><i class="fa fa-circle text-green"></i> <strong>{{ trans('admin/statuslabels/table.deployable') }}</strong>: {!! trans('admin/statuslabels/message.help.deployable') !!}</p>
|
<p><i class="fa fa-circle text-green"></i> <strong>{{ trans('admin/statuslabels/table.deployable') }}</strong>: {!! trans('admin/statuslabels/message.help.deployable') !!}</p>
|
||||||
<p><i class="fa fa-circle text-orange"></i> <strong>Pending</strong>{{ trans('admin/statuslabels/message.help.pending') }}</p>
|
<p><i class="fa fa-circle text-orange"></i> <strong>Pending</strong>: {{ trans('admin/statuslabels/message.help.pending') }}</p>
|
||||||
<p><i class="fa fa-times text-red"></i> <strong>Undeployable</strong>: {{ trans('admin/statuslabels/message.help.undeployable') }}</p>
|
<p><i class="fa fa-times text-red"></i> <strong>Undeployable</strong>: {{ trans('admin/statuslabels/message.help.undeployable') }}</p>
|
||||||
<p><i class="fa fa-times text-red"></i> <strong>Archived</strong>: {{ trans('admin/statuslabels/message.help.archived') }}</p>
|
<p><i class="fa fa-times text-red"></i> <strong>Archived</strong>: {{ trans('admin/statuslabels/message.help.archived') }}</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue