mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge branch 'develop' into features/import_models
This commit is contained in:
commit
220902a8b4
|
@ -117,6 +117,7 @@ class Importer extends Component
|
|||
|
||||
public function updatingTypeOfImport($type)
|
||||
{
|
||||
|
||||
// go through each header, find a matching field to try and map it to.
|
||||
foreach ($this->headerRow as $i => $header) {
|
||||
// do we have something mapped already?
|
||||
|
@ -552,7 +553,6 @@ class Importer extends Component
|
|||
|
||||
$this->field_map = null;
|
||||
foreach ($this->headerRow as $element) {
|
||||
|
||||
if (isset($this->activeFile->field_map[$element])) {
|
||||
$this->field_map[] = $this->activeFile->field_map[$element];
|
||||
} else {
|
||||
|
@ -595,8 +595,6 @@ class Importer extends Component
|
|||
|
||||
$this->message = trans('admin/hardware/message.import.file_delete_error');
|
||||
$this->message_type = 'danger';
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function clearMessage()
|
||||
|
|
|
@ -117,6 +117,9 @@ class SlackSettingsForm extends Component
|
|||
public function updatedwebhookEndpoint() {
|
||||
$this->teams_webhook_deprecated = !Str::contains($this->webhook_endpoint, 'workflows');
|
||||
}
|
||||
public function updatedwebhookEndpoint() {
|
||||
$this->teams_webhook_deprecated = !Str::contains($this->webhook_endpoint, 'workflows');
|
||||
}
|
||||
|
||||
private function isButtonDisabled() {
|
||||
if (empty($this->webhook_endpoint)) {
|
||||
|
|
|
@ -145,6 +145,7 @@ class ImportFactory extends Factory
|
|||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Create an asset model import type.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue