Skip to content

Commit

Permalink
Refresh theme cache on settings page load #554 (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Feb 18, 2020
1 parent 9304dae commit 0060f79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Http/Controllers/Admin/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class SettingsController extends Controller
*/
private function getThemes(): array
{
Theme::rebuildCache();
$themes = Theme::all();
$theme_list = [];
foreach ($themes as $t) {
Expand Down
3 changes: 2 additions & 1 deletion resources/views/admin/settings/table.blade.php
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -77,6 +77,7 @@
</div>

{{ Form::close() }}

<script>
$(document).ready(function () {
$('#datepicker').datetimepicker({
Expand Down
6 changes: 6 additions & 0 deletions resources/views/layouts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ignore everything so if we update via git, nothing is overwritten

/*
/*/
!.gitignore
!/default

0 comments on commit 0060f79

Please sign in to comment.