summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2020-01-29 05:18:40 +0300
committerGunnar Mills <gmills@us.ibm.com>2020-01-29 05:19:24 +0300
commitc4844b457cb7eeb8cab0ee8dca179be684a38b17 (patch)
tree0856ee85b0d0fd9cfc0e647cab40d02fb2bedf13 /src/components
parentff4ab407dac4b5652bf8b7a096894ba461a6cf6a (diff)
downloadwebui-vue-c4844b457cb7eeb8cab0ee8dca179be684a38b17.tar.xz
Revert "Change eslint rules to use vue recommended"
Merged accidentally. Although this one did have the proper +1s/+2s. The 2 underneath did not. The author will resubmit. This reverts commit 5e7ac49058e5dc37fd43ecf3c0d06f5dda14af5b. Change-Id: Iceb1de3a170cc0b592b183545c792aa3eb87bfee Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'src/components')
-rw-r--r--src/components/AppHeader/AppHeader.vue6
-rw-r--r--src/components/AppNavigation/AppNavigation.vue8
-rw-r--r--src/components/Global/PageSection.vue7
-rw-r--r--src/components/Global/PageTitle.vue7
-rw-r--r--src/components/Global/StatusIcon.vue7
5 files changed, 10 insertions, 25 deletions
diff --git a/src/components/AppHeader/AppHeader.vue b/src/components/AppHeader/AppHeader.vue
index b2d29c95..5c2c333c 100644
--- a/src/components/AppHeader/AppHeader.vue
+++ b/src/components/AppHeader/AppHeader.vue
@@ -42,6 +42,9 @@ import StatusIcon from '../Global/StatusIcon';
export default {
name: 'AppHeader',
components: { IconAvatar, IconRenew, StatusIcon },
+ created() {
+ this.getHostInfo();
+ },
computed: {
hostStatus() {
return this.$store.getters['global/hostStatus'];
@@ -58,9 +61,6 @@ export default {
}
}
},
- created() {
- this.getHostInfo();
- },
methods: {
getHostInfo() {
this.$store.dispatch('global/getHostStatus');
diff --git a/src/components/AppNavigation/AppNavigation.vue b/src/components/AppNavigation/AppNavigation.vue
index 47609d96..c246b537 100644
--- a/src/components/AppNavigation/AppNavigation.vue
+++ b/src/components/AppNavigation/AppNavigation.vue
@@ -7,7 +7,7 @@
<icon-health />Health
<icon-expand class="icon-expand" />
</b-button>
- <b-collapse id="health-menu" tag="ul" class="nav-item__nav">
+ <b-collapse tag="ul" id="health-menu" class="nav-item__nav">
<b-nav-item href="javascript:void(0)">Event Log</b-nav-item>
<b-nav-item href="javascript:void(0)">Hardware Status</b-nav-item>
<b-nav-item href="javascript:void(0)">Sensors</b-nav-item>
@@ -19,7 +19,7 @@
<icon-control />Control
<icon-expand class="icon-expand" />
</b-button>
- <b-collapse id="control-menu" tag="ul" class="nav-item__nav">
+ <b-collapse tag="ul" id="control-menu" class="nav-item__nav">
<b-nav-item href="javascript:void(0)">
Server power operations
</b-nav-item>
@@ -33,7 +33,7 @@
<icon-configuration />Configuration
<icon-expand class="icon-expand" />
</b-button>
- <b-collapse id="configuration-menu" tag="ul" class="nav-item__nav">
+ <b-collapse tag="ul" id="configuration-menu" class="nav-item__nav">
<b-nav-item href="javascript:void(0)">Network settings</b-nav-item>
<b-nav-item href="javascript:void(0)">SNMP settings</b-nav-item>
<b-nav-item href="javascript:void(0)">Firmware</b-nav-item>
@@ -45,7 +45,7 @@
<icon-access-control />Access Control
<icon-expand class="icon-expand" />
</b-button>
- <b-collapse id="access-control-menu" tag="ul" class="nav-item__nav">
+ <b-collapse tag="ul" id="access-control-menu" class="nav-item__nav">
<b-nav-item href="javascript:void(0)">LDAP</b-nav-item>
<b-nav-item to="/access-control/local-user-management">
Local user management
diff --git a/src/components/Global/PageSection.vue b/src/components/Global/PageSection.vue
index 03040b29..678fd31d 100644
--- a/src/components/Global/PageSection.vue
+++ b/src/components/Global/PageSection.vue
@@ -8,12 +8,7 @@
<script>
export default {
name: 'PageSection',
- props: {
- sectionTitle: {
- type: String,
- required: true
- }
- }
+ props: ['sectionTitle']
};
</script>
diff --git a/src/components/Global/PageTitle.vue b/src/components/Global/PageTitle.vue
index 26588ca7..02314249 100644
--- a/src/components/Global/PageTitle.vue
+++ b/src/components/Global/PageTitle.vue
@@ -8,12 +8,7 @@
<script>
export default {
name: 'PageTitle',
- props: {
- description: {
- type: String,
- default: ''
- }
- },
+ props: ['description'],
data() {
return {
title: this.$route.meta.title
diff --git a/src/components/Global/StatusIcon.vue b/src/components/Global/StatusIcon.vue
index a2c7f04f..63155c9a 100644
--- a/src/components/Global/StatusIcon.vue
+++ b/src/components/Global/StatusIcon.vue
@@ -13,16 +13,11 @@ import IconError from '@carbon/icons-vue/es/error--filled/20';
export default {
name: 'StatusIcon',
+ props: ['status'],
components: {
iconSuccess: IconCheckmark,
iconDanger: IconWarning,
iconSecondary: IconError
- },
- props: {
- status: {
- type: String,
- default: ''
- }
}
};
</script>