Remove pre-script section
This commit is contained in:
parent
43afaa3e8d
commit
b0097eacbd
|
|
@ -91,8 +91,6 @@
|
||||||
|
|
||||||
</div><!-- ./wrapper -->
|
</div><!-- ./wrapper -->
|
||||||
|
|
||||||
@yield('pre-script')
|
|
||||||
|
|
||||||
<!-- App Scripts -->
|
<!-- App Scripts -->
|
||||||
@include('common.dependencies.script', ['module' => 'user'])
|
@include('common.dependencies.script', ['module' => 'user'])
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,15 +17,12 @@
|
||||||
<section class="content"></section><!-- /.content -->
|
<section class="content"></section><!-- /.content -->
|
||||||
</div><!-- /.content-wrapper -->
|
</div><!-- /.content-wrapper -->
|
||||||
|
|
||||||
@endsection
|
|
||||||
|
|
||||||
@section('pre-script')
|
|
||||||
<script>
|
<script>
|
||||||
Object.defineProperty(window, '__bs_data__', {
|
Object.defineProperty(window, '__bs_data__', {
|
||||||
value: Object.freeze({
|
value: Object.freeze({
|
||||||
admin: !!{{ $user->isAdmin() }}
|
admin: !!{{ $user->isAdmin() }}
|
||||||
}),
|
}),
|
||||||
writable: false
|
writable: false
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user