fix: protected menu items hidden
This commit is contained in:
parent
8f968b42e2
commit
54013acf1d
|
|
@ -25,7 +25,7 @@ class ImportController extends Controller
|
|||
$userId = preg_split("/[\s\[\]\",]+/", \Cookie::get('user_auth'))[1];
|
||||
// $userId = 64;
|
||||
|
||||
$user = BirzhaUser::find($userId);
|
||||
$birzha_user = BirzhaUser::find($userId);
|
||||
} catch (Throwable $th) {
|
||||
\Log::info($th);
|
||||
return Inertia::location(env('PARENT_APP'));
|
||||
|
|
@ -77,7 +77,7 @@ class ImportController extends Controller
|
|||
'countries' => fn () => Import::countries($ids),
|
||||
'units' => fn () => Import::units($ids),
|
||||
'currencies' => fn () => Import::currencies($ids),
|
||||
'user' => fn () => $user
|
||||
'birzha_user' => fn () => $birzha_user
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@
|
|||
export default {
|
||||
props: {
|
||||
selectedItems: { type: Array, default: () => [] },
|
||||
user: { type: Object, default: () => {} },
|
||||
birzha_user: { type: Object, default: () => {} },
|
||||
},
|
||||
|
||||
// components: {
|
||||
|
|
@ -158,11 +158,11 @@ export default {
|
|||
visible: true,
|
||||
type: "local",
|
||||
form: this.$inertia.form({
|
||||
phone: this.user.username,
|
||||
phone: this.birzha_user.username,
|
||||
password: undefined,
|
||||
first_name: this.user.name,
|
||||
last_name: this.user.surname,
|
||||
email: this.user.email,
|
||||
first_name: this.birzha_user.name,
|
||||
last_name: this.birzha_user.surname,
|
||||
email: this.birzha_user.email,
|
||||
org_type: undefined,
|
||||
// captcha: undefined,
|
||||
items: [
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@
|
|||
<create-request-modal
|
||||
v-if="createRequestVisible"
|
||||
:selected-items="selectedItems"
|
||||
:user="user"
|
||||
:birzha_user="birzha_user"
|
||||
@close="createRequestVisible = false"
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -162,7 +162,7 @@ import InfiniteLoading from "vue-infinite-loading";
|
|||
import CreateRequestModal from "@/Components/CreateRequestModal";
|
||||
|
||||
export default {
|
||||
props: ["imports", "countries", "units", "currencies", "filters", "groups", "user"],
|
||||
props: ["imports", "countries", "units", "currencies", "filters", "groups", "birzha_user"],
|
||||
|
||||
components: { ImportModal, CreateRequestModal, InfiniteLoading },
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue