blob: 9f3ba52eb5cf495daeea9f977bc7db563c25fd33 [file] [log] [blame]
<template>
<div class="quicklinks">
<div>
<dl>
<dt>{{ $t('pageOverview.quicklinks.bmcTime') }}</dt>
<dd>{{ bmcTime | formatDate }} {{ bmcTime | formatTime }}</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.getBmcTime();
},
methods: {
getBmcTime() {
this.$store.dispatch('global/getBmcTime');
}
}
};
</script>
<style lang="scss" scoped>
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>