Refresh theme cache on settings page load #554 (#557)

This commit is contained in:
Nabeel S 2020-02-18 17:10:31 -05:00 committed by GitHub
parent 9304daea7a
commit 0060f794ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -17,6 +17,7 @@ class SettingsController extends Controller
*/
private function getThemes(): array
{
Theme::rebuildCache();
$themes = Theme::all();
$theme_list = [];
foreach ($themes as $t) {

View File

@ -1,7 +1,7 @@
{{ Form::model($grouped_settings, ['route' => ['admin.settings.update'], 'method' => 'post']) }}
@foreach($grouped_settings as $group => $settings)
<div class="card border-blue-bottom">
<div class="content table-responsive table-full-width">
<div class="content table-responsive">
<div class="row">
<table class="table table-hover" id="flights-table">
<thead>
@ -77,6 +77,7 @@
</div>
{{ Form::close() }}
<script>
$(document).ready(function () {
$('#datepicker').datetimepicker({

6
resources/views/layouts/.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
# Ignore everything so if we update via git, nothing is overwritten
/*
/*/
!.gitignore
!/default