Lint + ES6

This commit is contained in:
Liyas Thomas
2020-10-21 12:20:32 +05:30
parent 774853af7a
commit f49c2138de
25 changed files with 263 additions and 212 deletions

View File

@@ -126,7 +126,7 @@ export default {
}
},
watch: {
editingEnvironment: function (update) {
editingEnvironment(update) {
this.name =
this.$props.editingEnvironment && this.$props.editingEnvironment.name
? this.$props.editingEnvironment.name
@@ -151,13 +151,13 @@ export default {
}
}
},
clearContent(e) {
clearContent({ target }) {
this.$store.commit("postwoman/removeVariables", [])
e.target.innerHTML = this.doneButton
target.innerHTML = this.doneButton
this.$toast.info(this.$t("cleared"), {
icon: "clear_all",
})
setTimeout(() => (e.target.innerHTML = '<i class="material-icons">clear_all</i>'), 1000)
setTimeout(() => (target.innerHTML = '<i class="material-icons">clear_all</i>'), 1000)
},
addEnvironmentVariable() {
let value = { key: "", value: "" }