blob: 09e5a00ff7db13b344c7424932d43c142521d670 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
<template>
<div class="quicklinks">
<div>
<dl>
<dt>{{ $t('pageOverview.quicklinks.bmcTime') }}</dt>
<dd v-if="bmcTime">
{{ bmcTime | formatDate }} {{ bmcTime | formatTime }}
</dd>
<dd v-else>--</dd>
</dl>
</div>
<div>
<!-- TODO: add toggle LED on/off funtionality -->
<dl>
<dt>{{ $t('pageOverview.quicklinks.serverLed') }}</dt>
<dd>
<b-form-checkbox
v-model="serverLedChecked"
name="check-button"
switch
>
<span v-if="serverLedChecked">{{ $t('global.status.on') }}</span>
<span v-else>{{ $t('global.status.off') }}</span>
</b-form-checkbox>
</dd>
</dl>
</div>
<div>
<!-- TODO: link to network settings -->
<b-button
href="#"
variant="secondary"
class="d-flex justify-content-between align-items-center"
>
<span>{{ $t('pageOverview.quicklinks.editNetworkSettings') }}</span>
<icon-arrow-right />
</b-button>
</div>
<div>
<!-- TODO: link to SOL -->
<b-button
href="#"
variant="secondary"
class="d-flex justify-content-between align-items-center"
>
<span>{{ $t('pageOverview.quicklinks.solConsole') }}</span>
<icon-arrow-right />
</b-button>
</div>
</div>
</template>
<script>
import ArrowRight16 from '@carbon/icons-vue/es/arrow--right/16';
export default {
name: 'QuickLinks',
components: {
IconArrowRight: ArrowRight16
},
data() {
return {
serverLedChecked: false
};
},
computed: {
bmcTime() {
return this.$store.getters['global/bmcTime'];
}
},
created() {
this.$store.dispatch('global/getBmcTime').finally(() => {
this.$root.$emit('overview::quicklinks::complete');
});
}
};
</script>
<style lang="scss" scoped>
@import 'src/assets/styles/helpers';
dd,
dl {
margin: 0;
}
.quicklinks {
background: $container-bgd;
display: grid;
grid-gap: 1rem;
padding: 1rem;
white-space: nowrap;
align-items: center;
}
@include media-breakpoint-up(sm) {
.quicklinks {
grid-template-columns: repeat(2, 1fr);
}
}
@include media-breakpoint-up(xl) {
.quicklinks {
grid-template-columns: repeat(4, 1fr);
}
}
</style>
|