Skip to content

Commit 75f67fa

Browse files
committedNov 11, 2019
activate current tab
1 parent 1210916 commit 75f67fa

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed
 

‎.devcontainer/configuration.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
default_config:
22
lovelace:
33
mode: yaml
4+
conversation:
45
input_boolean:
56
footer:
67
name: 'footer:'

‎.devcontainer/ui-lovelace.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ custom_header:
1111
footer: '{{ states.input_boolean.footer.state == "on" }}'
1212
chevrons: '{{ states.input_boolean.chevrons.state == "on" }}'
1313
hide_tabs: '{{ states.input_text.hide_tabs.state }}'
14+
background: dimgray
1415
views:
1516
- icon: mdi:pac-man
1617
title: pacman
17-
background: dimgray
1818
cards:
1919
- type: entities
2020
entities:
@@ -29,19 +29,13 @@ views:
2929
- entity: input_text.hide_tabs
3030
- icon: mdi:ghost
3131
title: ghost
32-
background: dimgray
3332
- icon: mdi:skull
3433
title: skull
35-
background: dimgray
3634
- icon: mdi:bomb
3735
title: bomb
38-
background: dimgray
3936
- icon: mdi:death-star-variant
4037
title: death star
41-
background: dimgray
4238
- icon: mdi:space-invaders
4339
title: invader
44-
background: dimgray
4540
- icon: mdi:triforce
4641
title: triforce
47-
background: dimgray

‎dist/custom-header.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/build-header.js

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const buildHeader = () => {
4343
});
4444
});
4545
} else {
46+
if (!root.querySelector(name)) return;
4647
header[button] = document.createElement('paper-icon-button');
4748
header[button].addEventListener('click', () => {
4849
root

‎src/style-header.js

+3
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,7 @@ export const styleHeader = config => {
118118
attributeFilter: ['style'],
119119
});
120120
menuButtonVisibility();
121+
122+
header.tabContainer.querySelector('paper-tab.iron-selected').click();
123+
window.dispatchEvent(new Event('resize'));
121124
};

0 commit comments

Comments
 (0)
Please sign in to comment.