re-factor / cleanup
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user