mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Add restart button to running addons
https://www.pivotaltracker.com/story/show/145295371
This commit is contained in:
parent
031e2af311
commit
95b2fa0ad3
@ -51,6 +51,11 @@
|
||||
>Start</ha-call-api-button>
|
||||
</template>
|
||||
<template is='dom-if' if='[[isRunning]]'>
|
||||
<ha-call-api-button
|
||||
class='warning'
|
||||
hass='[[hass]]'
|
||||
path="[[pathRestart(addon)]]"
|
||||
>Restart</ha-call-api-button>
|
||||
<ha-call-api-button
|
||||
class='warning'
|
||||
hass='[[hass]]'
|
||||
@ -119,6 +124,10 @@ Polymer({
|
||||
return 'hassio/addons/' + addon + '/stop';
|
||||
},
|
||||
|
||||
pathRestart: function (addon) {
|
||||
return 'hassio/addons/' + addon + '/restart';
|
||||
},
|
||||
|
||||
pathInstall: function (addon) {
|
||||
return 'hassio/addons/' + addon + '/install';
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user