Great big ESLint

This commit is contained in:
Joel Collins 2019-11-11 16:33:43 +00:00
parent 051eabbdc3
commit ebcb938da1
48 changed files with 3890 additions and 2536 deletions

View file

@ -1,48 +1,51 @@
<template>
<a
href="#"
<a
href="#"
class="uk-link"
:class="classObject"
:class="classObject"
:uk-tooltip="tooltipOptions"
@click="setThisTab">
@click="setThisTab"
>
<slot></slot>
</a>
</template>
<script>
export default {
name: 'tabIcon',
name: "TabIcon",
props: {
id: String,
currentTab: String,
id: {
type: String,
required: true
},
currentTab: {
type: String,
required: true
},
requireConnection: Boolean
},
methods: {
setThisTab(event, value) {
this.$emit('set-tab', event, this.id);
computed: {
tooltipOptions: function() {
var title = this.id.charAt(0).toUpperCase() + this.id.slice(1);
return `pos: right; title: ${title}; delay: 500`;
},
classObject: function() {
return {
"tabicon-active": this.currentTab == this.id,
"uk-disabled": this.requireConnection && !this.$store.getters.ready
};
}
},
computed: {
tooltipOptions: function () {
var title = this.id.charAt(0).toUpperCase() + this.id.slice(1);
return `pos: right; title: ${title}; delay: 500`
},
classObject: function () {
return {
'tabicon-active': this.currentTab == this.id,
'uk-disabled': (this.requireConnection && !this.$store.getters.ready)
}
methods: {
setThisTab(event) {
this.$emit("set-tab", event, this.id);
}
}
}
};
</script>
<style lang="less" scoped>
@ -54,9 +57,8 @@ export default {
}
.hook-inverse() {
.tabicon-active {
color: @inverse-primary-muted-color !important;
}
.tabicon-active {
color: @inverse-primary-muted-color !important;
}
}
</style>
</style>