* Add Home Assistant restart option * Use addons/reload in store refresh * Add link to web UI * Show logo in addon view * Fix routing showing not found * Add reset options button to addon view * Fix unload error in addon info * Add refresh button to snapshot page * Lint
68 lines
1.4 KiB
HTML
68 lines
1.4 KiB
HTML
<link rel='import' href='../../bower_components/paper-button/paper-button.html'>
|
|
|
|
<link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout-classes.html">
|
|
|
|
<link rel="import" href="../../bower_components/app-layout/app-toolbar/app-toolbar.html">
|
|
|
|
<dom-module id='hass-error-screen'>
|
|
<template>
|
|
<style include='iron-flex ha-style'>
|
|
.placeholder {
|
|
height: 100%;
|
|
}
|
|
|
|
.layout {
|
|
height: calc(100% - 64px);
|
|
}
|
|
|
|
paper-button {
|
|
font-weight: bold;
|
|
color: var(--primary-color);
|
|
}
|
|
</style>
|
|
|
|
<div class='placeholder'>
|
|
<app-toolbar>
|
|
<ha-menu-button narrow='[[narrow]]' show-menu='[[showMenu]]'></ha-menu-button>
|
|
<div main-title>[[title]]</div>
|
|
</app-toolbar>
|
|
<div class='layout vertical center-center'>
|
|
<h3>[[error]]</h3>
|
|
<paper-button on-tap='backTapped'>go back</paper-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</dom-module>
|
|
|
|
<script>
|
|
Polymer({
|
|
is: 'hass-error-screen',
|
|
|
|
properties: {
|
|
narrow: {
|
|
type: Boolean,
|
|
value: false,
|
|
},
|
|
|
|
showMenu: {
|
|
type: Boolean,
|
|
value: false,
|
|
},
|
|
|
|
title: {
|
|
type: String,
|
|
value: 'Home Assistant',
|
|
},
|
|
|
|
error: {
|
|
type: String,
|
|
value: 'Oops! It looks like something went wrong.'
|
|
},
|
|
},
|
|
|
|
backTapped: function () {
|
|
history.back();
|
|
},
|
|
});
|
|
</script>
|