Allow deleting saved color palettes
This commit is contained in:
@@ -49,8 +49,7 @@ final class SiteDesign
|
||||
throw new RuntimeException('请先发布并选择维护页,再开启维护模式。');
|
||||
}
|
||||
if ($palette !== null) {
|
||||
$site['palette_id'] = DesignLibrary::selection('palette', $palette)
|
||||
?? throw new RuntimeException('请选择站点默认配色。');
|
||||
$site['palette_id'] = DesignLibrary::selection('palette', $palette);
|
||||
}
|
||||
$site['name'] = $name;
|
||||
$site['cdn'] = ['origin' => $origin];
|
||||
|
||||
Reference in New Issue
Block a user