Use new id method

This commit is contained in:
Marcus Moore 2024-05-29 13:15:59 -07:00
parent 093c6652a8
commit 638ae9bdd5
No known key found for this signature in database

View file

@ -158,7 +158,7 @@
'data-placeholder' => trans('general.select_var', ['thing' => trans('general.import_type')]),
'placeholder' => '', //needed so that the form-helper will put an empty option first
'data-minimum-results-for-search' => '-1', // Remove this if the list gets long enough that we need to search
'data-livewire-component' => $_instance->id
'data-livewire-component' => $this->getId()
]) }}
@if ($activeFile->import_type === 'asset' && $snipeSettings->auto_increment_assets == 0)
<p class="help-block">
@ -170,7 +170,9 @@
<div class="form-group col-md-9 col-md-offset-3">
<label class="form-control">
<input type="checkbox" name="update" data-livewire-component="{{ $_instance->id }}" wire:model.live="update">
<input type="checkbox" name="update"
data-livewire-component="{{ $this->getId() }}"
wire:model.live="update">
{{ trans('general.update_existing_values') }}
</label>
@if ($activeFile->import_type === 'asset' && $snipeSettings->auto_increment_assets == 1 && $update)
@ -180,12 +182,16 @@
@endif
<label class="form-control">
<input type="checkbox" name="send_welcome" data-livewire-component="{{ $_instance->id }}" wire:model.live="send_welcome">
<input type="checkbox" name="send_welcome"
data-livewire-component="{{ $this->getId() }}"
wire:model.live="send_welcome">
{{ trans('general.send_welcome_email_to_users') }}
</label>
<label class="form-control">
<input type="checkbox" name="run_backup" data-livewire-component="{{ $_instance->id }}" wire:model.live="run_backup">
<input type="checkbox" name="run_backup"
data-livewire-component="{{ $this->getId() }}"
wire:model.live="run_backup">
{{ trans('general.back_before_importing') }}
</label>
@ -231,7 +237,7 @@
'class' => 'mappings livewire-select2',
'placeholder' => trans('general.importer.do_not_import'),
'style' => 'min-width: 100%',
'data-livewire-component' => $_instance->id
'data-livewire-component' => $this->getId()
],[
'-' => ['disabled' => true] // this makes the "-----" line unclickable
])