Skip to content

Commit 99e2325

Browse files
core: frontend: componentes: system-information: AboutThisSystem: Add model information
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent 6953788 commit 99e2325

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

core/frontend/src/components/system-information/AboutThisSystem.vue

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export default Vue.extend({
3232
name: 'Processes',
3333
data() {
3434
return {
35-
timer: 0,
35+
timer_unix: 0,
36+
timer_model: 0,
3637
}
3738
},
3839
computed: {
@@ -50,6 +51,11 @@ export default Vue.extend({
5051
{
5152
title: 'Kernel', value: `${info.kernel_version}`,
5253
},
54+
{
55+
title: 'Model', value: `${system_information.model?.model ?? 'Unknown Model'} ` +
56+
`- ${system_information.model?.arch ?? 'Unknown Architecture'} ` +
57+
`(${system_information.model?.cpu_name ?? 'Unknown CPU'})`,
58+
},
5359
{
5460
title: 'Hostname', value: `${info.host_name}`,
5561
},
@@ -75,10 +81,12 @@ export default Vue.extend({
7581
},
7682
},
7783
mounted() {
78-
this.timer = setInterval(() => system_information.fetchSystemInformation(FetchType.SystemUnixTimeSecondsType), 1000)
84+
this.timer_unix = setInterval(() => system_information.fetchSystemInformation(FetchType.SystemUnixTimeSecondsType), 1000)
85+
this.timer_model = setInterval(() => system_information.fetchSystemInformation(FetchType.ModelType), 1000)
7986
},
8087
beforeDestroy() {
81-
clearInterval(this.timer)
88+
clearInterval(this.timer_unix)
89+
clearInterval(this.timer_model)
8290
},
8391
})
8492
</script>

0 commit comments

Comments
 (0)