[PLUGINS][Oomox] Hotfix: cache wasn't set. Proper labels.
This commit is contained in:
parent
180ae15647
commit
d46a6163a0
@ -71,39 +71,39 @@ class Oomox
|
|||||||
$form = Form::create([
|
$form = Form::create([
|
||||||
['colour_foreground', ColorType::class, [
|
['colour_foreground', ColorType::class, [
|
||||||
'html5' => true,
|
'html5' => true,
|
||||||
'data' => $current_oomox_settings ? $current_oomox_settings->getColourForeground() : '#09090d',
|
'data' => $current_oomox_settings?->getColourForeground(),
|
||||||
'label' => _m('Profile background color'),
|
'label' => _m('Foreground colour'),
|
||||||
'help' => _m('Choose your Profile background color'), ],
|
'help' => _m('Choose the foreground colour'), ],
|
||||||
],
|
],
|
||||||
['colour_background_hard', ColorType::class, [
|
['colour_background_hard', ColorType::class, [
|
||||||
'html5' => true,
|
'html5' => true,
|
||||||
'data' => $current_oomox_settings ? $current_oomox_settings->getColourBackgroundHard() : '#ebebeb',
|
'data' => $current_oomox_settings?->getColourBackgroundHard(),
|
||||||
'label' => _m('Profile foreground color'),
|
'label' => _m('Background colour'),
|
||||||
'help' => _m('Choose your Profile foreground color'), ],
|
'help' => _m('Choose the background colour'), ],
|
||||||
],
|
],
|
||||||
['colour_background_card', ColorType::class, [
|
['colour_background_card', ColorType::class, [
|
||||||
'html5' => true,
|
'html5' => true,
|
||||||
'data' => $current_oomox_settings ? $current_oomox_settings->getColourBackgroundCard() : '#f0f0f0',
|
'data' => $current_oomox_settings?->getColourBackgroundCard(),
|
||||||
'label' => _m('Profile background color'),
|
'label' => _m('Card background colour'),
|
||||||
'help' => _m('Choose your Profile background color'), ],
|
'help' => _m('Choose the card background colour'), ],
|
||||||
],
|
],
|
||||||
['colour_border', ColorType::class, [
|
['colour_border', ColorType::class, [
|
||||||
'html5' => true,
|
'html5' => true,
|
||||||
'data' => $current_oomox_settings ? $current_oomox_settings->getColourBorder() : '#d5d5d5',
|
'data' => $current_oomox_settings?->getColourBorder(),
|
||||||
'label' => _m('Profile foreground color'),
|
'label' => _m('Border colour'),
|
||||||
'help' => _m('Choose your Profile foreground color'), ],
|
'help' => _m('Choose colour of borders'), ],
|
||||||
],
|
],
|
||||||
['colour_accent', ColorType::class, [
|
['colour_accent', ColorType::class, [
|
||||||
'html5' => true,
|
'html5' => true,
|
||||||
'data' => $current_oomox_settings ? $current_oomox_settings->getColourAccent() : '#a22430',
|
'data' => $current_oomox_settings?->getColourAccent(),
|
||||||
'label' => _m('Profile foreground color'),
|
'label' => _m('Accent colour'),
|
||||||
'help' => _m('Choose your Profile foreground color'), ],
|
'help' => _m('Choose the accent colour'), ],
|
||||||
],
|
],
|
||||||
['colour_shadow', ColorType::class, [
|
['colour_shadow', ColorType::class, [
|
||||||
'html5' => true,
|
'html5' => true,
|
||||||
'data' => $current_oomox_settings ? $current_oomox_settings->getColourShadow() : '#24243416',
|
'data' => $current_oomox_settings?->getColourShadow(),
|
||||||
'label' => _m('Profile foreground color'),
|
'label' => _m('Shadow colour'),
|
||||||
'help' => _m('Choose your Profile foreground color'), ],
|
'help' => _m('Choose color of shadows'), ],
|
||||||
],
|
],
|
||||||
['hidden', HiddenType::class, []],
|
['hidden', HiddenType::class, []],
|
||||||
['save_oomox_colours', SubmitType::class, ['label' => _m('Submit')]],
|
['save_oomox_colours', SubmitType::class, ['label' => _m('Submit')]],
|
||||||
@ -132,7 +132,7 @@ class Oomox
|
|||||||
DB::merge($current_oomox_settings);
|
DB::merge($current_oomox_settings);
|
||||||
DB::flush();
|
DB::flush();
|
||||||
|
|
||||||
Cache::delete(\Plugin\Oomox\Oomox::cacheKey($user));
|
Cache::set(\Plugin\Oomox\Oomox::cacheKey($user), $current_oomox_settings);
|
||||||
|
|
||||||
throw new RedirectException();
|
throw new RedirectException();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user