移除不允许删除最后一个
This commit is contained in:
@@ -3621,11 +3621,6 @@ const EmbyConfigComponent = ({
|
|||||||
|
|
||||||
// 删除源
|
// 删除源
|
||||||
const handleDelete = async (source: any) => {
|
const handleDelete = async (source: any) => {
|
||||||
if (sources.length === 1) {
|
|
||||||
showError('至少需要保留一个Emby源', showAlert);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!confirm(`确定要删除 "${source.name}" 吗?`)) {
|
if (!confirm(`确定要删除 "${source.name}" 吗?`)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user