mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +00:00
Fix icon mdi: prefix to use auto-validate. (#423)
This commit is contained in:
parent
4c96240ff6
commit
4e4b59d3d4
@ -15,12 +15,12 @@
|
||||
margin-top: 10px;
|
||||
}
|
||||
</style>
|
||||
<iron-icon class="icon-image" icon="mdi:[[item.value]]"></iron-icon>
|
||||
<iron-icon class="icon-image" icon="[[item.value]]"></iron-icon>
|
||||
<paper-input
|
||||
auto-validate pattern="(mdi:.*)?" error-message="Must start with 'mdi:'"
|
||||
disabled='[[item.secondary]]'
|
||||
label='icon'
|
||||
value='{{item.value}}'>
|
||||
<span slot="prefix">mdi:</span>
|
||||
</paper-input>
|
||||
</template>
|
||||
</dom-module>
|
||||
|
Loading…
x
Reference in New Issue
Block a user