diff options
author | Derick Montague <derick.montague@ibm.com> | 2019-12-20 22:26:53 +0300 |
---|---|---|
committer | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2020-01-29 01:18:05 +0300 |
commit | e2fd156773dbc2e919c912673de092d707e8ef69 (patch) | |
tree | 5b861f723e71156def2a096d0542de96841ee27a /src/components/AppHeader/AppHeader.vue | |
parent | f65ee346bedb1811e88b12542abce0d18bb5fc32 (diff) | |
download | webui-vue-e2fd156773dbc2e919c912673de092d707e8ef69.tar.xz |
Fix linting in script blocks in vue files
- Removed the .eslintrc and added the pretteri rules to the eslintrc file
- Ran `npm run lint --fix`
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: I4e36c1967ae9b4d839ef88f1d47ffa20ab4e4991
Diffstat (limited to 'src/components/AppHeader/AppHeader.vue')
-rw-r--r-- | src/components/AppHeader/AppHeader.vue | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/components/AppHeader/AppHeader.vue b/src/components/AppHeader/AppHeader.vue index 244eeb32..5c2c333c 100644 --- a/src/components/AppHeader/AppHeader.vue +++ b/src/components/AppHeader/AppHeader.vue @@ -36,38 +36,38 @@ </template> <script> -import IconAvatar from "@carbon/icons-vue/es/user--avatar/20"; -import IconRenew from "@carbon/icons-vue/es/renew/20"; -import StatusIcon from "../Global/StatusIcon"; +import IconAvatar from '@carbon/icons-vue/es/user--avatar/20'; +import IconRenew from '@carbon/icons-vue/es/renew/20'; +import StatusIcon from '../Global/StatusIcon'; export default { - name: "AppHeader", + name: 'AppHeader', components: { IconAvatar, IconRenew, StatusIcon }, created() { this.getHostInfo(); }, computed: { hostStatus() { - return this.$store.getters["global/hostStatus"]; + return this.$store.getters['global/hostStatus']; }, hostStatusIcon() { switch (this.hostStatus) { - case "on": - return "success"; - case "error": - return "danger"; - case "off": + case 'on': + return 'success'; + case 'error': + return 'danger'; + case 'off': default: - return "secondary"; + return 'secondary'; } } }, methods: { getHostInfo() { - this.$store.dispatch("global/getHostStatus"); + this.$store.dispatch('global/getHostStatus'); }, logout() { - this.$store.dispatch("authentication/logout").then(() => { - this.$router.push("/login"); + this.$store.dispatch('authentication/logout').then(() => { + this.$router.push('/login'); }); } } |