mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Minor CSS Fixes
This commit is contained in:
parent
e1407a7d73
commit
140597c7f8
@ -44,8 +44,9 @@ class HaConfigManagerDashboard extends
|
|||||||
ha-state-icon {
|
ha-state-icon {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
a paper-item {
|
.configured a {
|
||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@ -66,7 +67,7 @@ class HaConfigManagerDashboard extends
|
|||||||
</ha-config-section>
|
</ha-config-section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<ha-config-section>
|
<ha-config-section class='configured'>
|
||||||
<span slot="header">Configured</span>
|
<span slot="header">Configured</span>
|
||||||
<paper-card>
|
<paper-card>
|
||||||
<template is="dom-if" if="[[!entries.length]]">
|
<template is="dom-if" if="[[!entries.length]]">
|
||||||
|
@ -43,7 +43,10 @@ class HaConfigEntryPage extends NavigateMixin(EventsMixin(PolymerElement)) {
|
|||||||
on-click='_removeEntry'
|
on-click='_removeEntry'
|
||||||
></paper-icon-button>
|
></paper-icon-button>
|
||||||
<div class='content'>
|
<div class='content'>
|
||||||
<template is='dom-repeat' items='[[_computeConfigEntryDevices(configEntry, devices)]]' as='device'>
|
<template is='dom-if' if='[[!configEntryDevices.length]]'>
|
||||||
|
<p>This integration has no devices.</p>
|
||||||
|
</template>
|
||||||
|
<template is='dom-repeat' items='[[configEntryDevices]]' as='device'>
|
||||||
<ha-device-card
|
<ha-device-card
|
||||||
hass='[[hass]]'
|
hass='[[hass]]'
|
||||||
devices='[[devices]]'
|
devices='[[devices]]'
|
||||||
@ -60,21 +63,30 @@ class HaConfigEntryPage extends NavigateMixin(EventsMixin(PolymerElement)) {
|
|||||||
return {
|
return {
|
||||||
hass: Object,
|
hass: Object,
|
||||||
isWide: Boolean,
|
isWide: Boolean,
|
||||||
|
|
||||||
configEntry: {
|
configEntry: {
|
||||||
type: Object,
|
type: Object,
|
||||||
value: null,
|
value: null,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
configEntryDevices: {
|
||||||
|
type: Array,
|
||||||
|
computed: '_computeConfigEntryDevices(configEntry, devices)'
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Device registry entries
|
||||||
|
*/
|
||||||
|
devices: Array,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Existing entries.
|
* Existing entries.
|
||||||
*/
|
*/
|
||||||
_entries: Array,
|
entries: Array,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Entity Registry entries.
|
* Entity Registry entries.
|
||||||
*/
|
*/
|
||||||
_entities: Array,
|
entities: Array,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user