Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/hw_posbox_homepage/static/src/app/Homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class Homepage extends Component {
</SingleData>
<SingleData t-if="this.store.advanced" name="'Version'" value="this.data.version" icon="'fa-microchip'">
<t t-set-slot="button">
<UpdateDialog t-if="this.store.isLinux" />
<UpdateDialog />
</t>
</SingleData>
<SingleData t-if="this.store.advanced" name="'IP address'" value="this.data.ip" icon="'fa-globe'" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ export class UpdateDialog extends Component {
}

async getVersionInfo() {
if (!this.store.isLinux) {
this.state.odooIsUpToDate = true;
this.state.imageIsUpToDate = true;
this.state.initialization = false;
return
}
try {
const data = await this.store.rpc({
url: "/hw_posbox_homepage/version_info",
Expand Down Expand Up @@ -93,7 +99,7 @@ export class UpdateDialog extends Component {
<p>Currently fetching update data...</p>
</div>

<div class="mb-3">
<div class="mb-3" t-if="this.store.isLinux">
<h6>Operating System Update</h6>
<div t-if="this.state.imageIsUpToDate" class="text-success px-2 small">
Operating system is up to date
Expand All @@ -111,7 +117,7 @@ export class UpdateDialog extends Component {
</div>
</div>

<div class="mb-3">
<div class="mb-3" t-if="this.store.isLinux">
<h6>IoT Box Update</h6>
<div t-if="this.state.odooIsUpToDate" class="text-success px-2 small">
IoT Box is up to date.
Expand Down