Allow hiding values of settings in the overview.
This commit is contained in:
parent
fdb200b36a
commit
64bda9339a
2 changed files with 7 additions and 1 deletions
|
@ -57,9 +57,13 @@
|
|||
|
||||
.manage-list-setting-value {
|
||||
padding: 5px;
|
||||
max-width: 570px;
|
||||
}
|
||||
.manage-list-setting-value-text {
|
||||
font-family: var(--font-monospace);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.manage-list-setting-options {
|
||||
|
|
|
@ -12,13 +12,15 @@ if(!User::hasCurrent()
|
|||
return;
|
||||
}
|
||||
|
||||
$hidden = Config::get('settings.hidden', Config::TYPE_ARR, []);
|
||||
|
||||
$vars = [];
|
||||
foreach(Config::keys() as $key) {
|
||||
$var = Config::get($key);
|
||||
$vars[] = [
|
||||
'key' => $key,
|
||||
'type' => Config::type($var),
|
||||
'value' => json_encode($var),
|
||||
'value' => in_array($key, $hidden) ? '*** hidden ***' : json_encode($var),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue