mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Match UI with core and don't allow restore config without db and vice … (#23553)
Match UI with core and dont allow restore config without db and vice versa
This commit is contained in:
parent
2e2f39adbd
commit
54b328648a
@ -86,12 +86,6 @@ export class HaBackupDataPicker extends LitElement {
|
||||
version: data.homeassistant_version,
|
||||
});
|
||||
}
|
||||
if (data.database_included) {
|
||||
items.push({
|
||||
label: "History",
|
||||
id: "database",
|
||||
});
|
||||
}
|
||||
items.push(
|
||||
...data.folders.map<CheckBoxItem>((folder) => ({
|
||||
label: this._localizeFolder(folder),
|
||||
@ -145,9 +139,6 @@ export class HaBackupDataPicker extends LitElement {
|
||||
if (value.homeassistant_included) {
|
||||
homeassistant.push("config");
|
||||
}
|
||||
if (value.database_included) {
|
||||
homeassistant.push("database");
|
||||
}
|
||||
|
||||
const folders = value.folders;
|
||||
homeassistant.push(...folders);
|
||||
@ -164,7 +155,9 @@ export class HaBackupDataPicker extends LitElement {
|
||||
(selectedItems: SelectedItems, data: BackupData): BackupData => ({
|
||||
homeassistant_version: data.homeassistant_version,
|
||||
homeassistant_included: selectedItems.homeassistant.includes("config"),
|
||||
database_included: selectedItems.homeassistant.includes("database"),
|
||||
database_included:
|
||||
data.database_included &&
|
||||
selectedItems.homeassistant.includes("config"),
|
||||
addons: data.addons.filter((addon) =>
|
||||
selectedItems.addons.includes(addon.slug)
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user