re-factor / cleanup

This commit is contained in:
2022-01-11 22:08:38 +00:00
parent e871708b20
commit e0be8a7cfe
251 changed files with 14680 additions and 15693 deletions

View File

@@ -140,11 +140,6 @@
</template>
<script>
export default {
data() {
return {
timer: ""
};
},
props: {
id: {
type: String,
@@ -158,6 +153,19 @@ export default {
maxListItems: { type: Number, default: 10 },
icon: { type: String, default: "$ayiTachometer" }
},
data() {
return {
timer: ""
};
},
computed: {
hasAddUrl: function() {
return this.addUrl && this.addUrl != "";
},
translatedTitle() {
return this.$ay.t(this.title);
}
},
created() {
this.refresh();
if (this.updateFrequency > 0) {
@@ -169,14 +177,6 @@ export default {
beforeDestroy() {
clearInterval(this.timer);
},
computed: {
hasAddUrl: function() {
return this.addUrl && this.addUrl != "";
},
translatedTitle() {
return this.$ay.t(this.title);
}
},
methods: {
refresh: function() {
this.$emit("dash-refresh");