Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 1 | <template> |
Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -0600 | [diff] [blame] | 2 | <b-list-group> |
| 3 | <!-- TODO: add event log priority events count --> |
| 4 | <b-list-group-item> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 5 | <dl> |
| 6 | <dt>BMC time</dt> |
Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -0600 | [diff] [blame] | 7 | <dd>{{ bmcTime | date('MMM, DD YYYY HH:MM:SS A ZZ') }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 8 | </dl> |
Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -0600 | [diff] [blame] | 9 | </b-list-group-item> |
| 10 | <b-list-group-item> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 11 | <!-- TODO: add toggle LED on/off funtionality --> |
Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -0600 | [diff] [blame] | 12 | <b-form-checkbox v-model="serverLedChecked" name="check-button" switch> |
| 13 | Turn |
| 14 | <span v-if="!serverLedChecked">on</span> |
| 15 | <span v-else>off</span> server LED |
| 16 | </b-form-checkbox> |
| 17 | </b-list-group-item> |
| 18 | <b-list-group-item |
| 19 | href="#" |
| 20 | class="d-flex justify-content-between align-items-center" |
| 21 | > |
Dixsie Wolmers | 256f5b9 | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 22 | <!-- TODO: link to SOL --> |
Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -0600 | [diff] [blame] | 23 | <span>Serial over LAN console</span> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame^] | 24 | <chevron-right16 /> |
Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -0600 | [diff] [blame] | 25 | </b-list-group-item> |
| 26 | <b-list-group-item |
| 27 | href="#" |
| 28 | class="d-flex justify-content-between align-items-center" |
| 29 | > |
| 30 | <!-- TODO: link to network settings --> |
| 31 | <span>Edit network settings</span> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame^] | 32 | <chevron-right16 /> |
Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -0600 | [diff] [blame] | 33 | </b-list-group-item> |
| 34 | </b-list-group> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 35 | </template> |
| 36 | |
| 37 | <script> |
Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -0600 | [diff] [blame] | 38 | import ChevronRight16 from '@carbon/icons-vue/es/chevron--right/16'; |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 39 | export default { |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame^] | 40 | name: 'QuickLinks', |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 41 | components: { |
Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -0600 | [diff] [blame] | 42 | ChevronRight16 |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 43 | }, |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame^] | 44 | data() { |
| 45 | return { |
| 46 | serverLEDChecked: false |
| 47 | }; |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 48 | }, |
| 49 | computed: { |
| 50 | bmcTime() { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 51 | return this.$store.getters['global/bmcTime']; |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 52 | } |
| 53 | }, |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame^] | 54 | created() { |
| 55 | this.getBmcTime(); |
| 56 | }, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 57 | methods: { |
| 58 | getBmcTime() { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 59 | this.$store.dispatch('global/getBmcTime'); |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 60 | } |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 61 | } |
| 62 | }; |
| 63 | </script> |