| 1 | <html> |
| 2 | <head> |
| 3 | <title>Self Update</title> |
| 4 | <script type="module"> |
| 5 | import { store } from "/components/settings/external/self-update-store.js"; |
| 6 | </script> |
| 7 | </head> |
| 8 | |
| 9 | <body> |
| 10 | <div x-data="{ get settings() { return $store.settings.settings } }"> |
| 11 | <template x-if="settings"> |
| 12 | <div> |
| 13 | <div class="section-title" |
| 14 | :class="{'settings-update-title-attention': $store.settings.hasUpdateAttention}"> |
| 15 | Self Update |
| 16 | </div> |
| 17 | <div class="section-description"> |
| 18 | Update Agent Zero deliberately, with a backup path available before anything changes. |
| 19 | </div> |
| 20 | |
| 21 | <div class="settings-update-card" |
| 22 | :class="{'settings-update-card-attention': $store.settings.hasUpdateAttention}"> |
| 23 | <div class="settings-update-card-icon" aria-hidden="true"> |
| 24 | <x-icon |
| 25 | :name="$store.settings.hasUpdateAttention ? 'release_alert' : 'system_update_alt'"></x-icon> |
| 26 | </div> |
| 27 | <div class="settings-update-card-copy"> |
| 28 | <div class="settings-update-card-title" x-text="$store.settings.updateAttentionTitle"></div> |
| 29 | <div class="settings-update-card-message" x-text="$store.settings.updateAttentionMessage"></div> |
| 30 | <template x-if="!$store.settings.additional?.is_dockerized"> |
| 31 | <div class="settings-update-card-message"> |
| 32 | Self-update is currently available only in dockerized installs. |
| 33 | </div> |
| 34 | </template> |
| 35 | <div class="settings-update-card-meta"> |
| 36 | <span class="settings-update-card-badge" x-text="$store.settings.updateAttentionLabel"></span> |
| 37 | </div> |
| 38 | </div> |
| 39 | <div class="settings-update-card-actions"> |
| 40 | <button |
| 41 | class="btn btn-field" |
| 42 | @click="$store.selfUpdateStore.openModal()" |
| 43 | :disabled="!$store.settings.additional?.is_dockerized" |
| 44 | > |
| 45 | Review Update |
| 46 | </button> |
| 47 | </div> |
| 48 | </div> |
| 49 | |
| 50 | <div class="field"> |
| 51 | <div class="field-label"> |
| 52 | <div class="field-title">Update notifications</div> |
| 53 | <div class="field-description"> |
| 54 | Check for newer releases quietly. Toasts are intentionally rate-limited; the update status here stays visible. |
| 55 | </div> |
| 56 | </div> |
| 57 | <div class="field-control"> |
| 58 | <label class="toggle"> |
| 59 | <input type="checkbox" x-model="settings.update_check_enabled" /> |
| 60 | <span class="toggler"></span> |
| 61 | </label> |
| 62 | </div> |
| 63 | </div> |
| 64 | </div> |
| 65 | </template> |
| 66 | </div> |
| 67 | </body> |
| 68 | </html> |