Improve display mode button text.
This commit is contained in:
+2
-2
@@ -557,8 +557,8 @@ export class FrigateCardEditor extends LitElement implements LovelaceCardEditor
|
||||
|
||||
protected _displayModes: EditorSelectOption[] = [
|
||||
{ value: '', label: '' },
|
||||
{ value: 'single', label: localize('config.common.display.modes.single') },
|
||||
{ value: 'grid', label: localize('config.common.display.modes.grid') },
|
||||
{ value: 'single', label: localize('display_modes.single') },
|
||||
{ value: 'grid', label: localize('display_modes.grid') },
|
||||
];
|
||||
|
||||
public setConfig(config: RawFrigateCardConfig): void {
|
||||
|
||||
@@ -153,11 +153,7 @@
|
||||
"grid_columns": "Exact number of grid columns",
|
||||
"grid_max_columns": "Maximum number of grid columns",
|
||||
"grid_selected_width_factor": "Increase selected media width by this factor",
|
||||
"mode": "Mode",
|
||||
"modes": {
|
||||
"single": "Show single media viewer",
|
||||
"grid": "Show media viewer for each camera in a grid"
|
||||
}
|
||||
"mode": "Mode"
|
||||
},
|
||||
"layout": {
|
||||
"fit": "Layout fit",
|
||||
@@ -376,6 +372,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"display_modes": {
|
||||
"single": "Show single media viewer",
|
||||
"grid": "Show media viewer for each camera in a grid"
|
||||
},
|
||||
"editor": {
|
||||
"add_new_camera": "Add new camera",
|
||||
"button": "Button",
|
||||
|
||||
@@ -153,10 +153,7 @@
|
||||
"grid_columns": "",
|
||||
"grid_max_columns": "",
|
||||
"grid_selected_width_factor": "",
|
||||
"modes": {
|
||||
"single": "",
|
||||
"grid": ""
|
||||
}
|
||||
"mode": ""
|
||||
},
|
||||
"layout": {
|
||||
"fit": "Adatta al layout",
|
||||
@@ -369,6 +366,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"display_modes": {
|
||||
"grid": "",
|
||||
"single": ""
|
||||
},
|
||||
"editor": {
|
||||
"add_new_camera": "Aggiungi nuova telecamera",
|
||||
"button": "Pulsante",
|
||||
|
||||
@@ -153,11 +153,7 @@
|
||||
"grid_columns": "",
|
||||
"grid_max_columns": "",
|
||||
"grid_selected_width_factor": "",
|
||||
"mode": "",
|
||||
"modes": {
|
||||
"single": "",
|
||||
"grid": ""
|
||||
}
|
||||
"mode": ""
|
||||
},
|
||||
"layout": {
|
||||
"fit": "Ajuste de layout",
|
||||
@@ -375,6 +371,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"display_modes": {
|
||||
"grid": "",
|
||||
"single": ""
|
||||
},
|
||||
"editor": {
|
||||
"add_new_camera": "Adicionar nova câmera",
|
||||
"button": "Botão",
|
||||
|
||||
@@ -153,11 +153,7 @@
|
||||
"grid_columns": "",
|
||||
"grid_max_columns": "",
|
||||
"grid_selected_width_factor": "",
|
||||
"mode": "",
|
||||
"modes": {
|
||||
"single": "",
|
||||
"grid": ""
|
||||
}
|
||||
"mode": ""
|
||||
},
|
||||
"layout": {
|
||||
"fit": "Fit",
|
||||
@@ -363,6 +359,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"display_modes": {
|
||||
"grid": "",
|
||||
"single": ""
|
||||
},
|
||||
"editor": {
|
||||
"add_new_camera": "Adicionar nova câmera",
|
||||
"button": "Botão",
|
||||
|
||||
@@ -404,7 +404,9 @@ export class MenuButtonController {
|
||||
icon: isGrid ? 'mdi:grid-off' : 'mdi:grid',
|
||||
...config.menu.buttons.display_mode,
|
||||
type: 'custom:frigate-card-menu-icon',
|
||||
title: localize('config.menu.buttons.display_mode'),
|
||||
title: isGrid
|
||||
? localize('display_modes.single')
|
||||
: localize('display_modes.grid'),
|
||||
tap_action: action,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user