Merge branch 'livewire_importer_2_squashed_and_rebased' of github.com:uberbrady/snipe-it into livewire_importer_2_squashed_and_rebased

This commit is contained in:
Brady Wetherington 2023-03-08 13:57:21 -08:00
commit 087fe19ae7

View file

@ -106,8 +106,36 @@ class ImporterFile extends Component
//array of "real fieldnames" to a list of aliases for that field //array of "real fieldnames" to a list of aliases for that field
static $aliases = [ static $aliases = [
'model_number' => ['model', 'model no','model no.','model number', 'model num', 'model num.'], 'model_number' =>
'warranty_months' => ['Warranty', 'Warranty Months'] [
'model',
'model no',
'model no.',
'model number',
'model num',
'model num.'
],
'warranty_months' =>
[
'Warranty',
'Warranty Months'
],
'qty' =>
[
'QTY',
'Quantity'
],
'min_amt' =>
[
'Min Amount',
'Min QTY'
],
'next_audit_date' =>
[
'Next Audit',
],
]; ];
private function getColumns($type) private function getColumns($type)
@ -191,12 +219,12 @@ class ImporterFile extends Component
public function mount() public function mount()
{ {
$this->importTypes = [ $this->importTypes = [
'asset' => 'Assets', // TODO - translate! 'asset' => trans('general.assets'),
'accessory' => 'Accessories', 'accessory' => trans('general.accessories'),
'consumable' => 'Consumables', 'consumable' => trans('general.consumables'),
'component' => 'Components', 'component' => trans('general.components'),
'license' => 'Licenses', 'license' => trans('general.licenses'),
'user' => 'Users' 'user' => trans('general.users'),
]; ];
$this->columnOptions[''] = $this->getColumns(''); //blank mode? I don't know what this is supposed to mean $this->columnOptions[''] = $this->getColumns(''); //blank mode? I don't know what this is supposed to mean
@ -215,7 +243,7 @@ class ImporterFile extends Component
return false; return false;
} }
$this->statusType = 'pending'; $this->statusType = 'pending';
$this->statusText = "Processing..."; $this->statusText = trans('admin/hardware/form.processing_spinner');
} }