Lint + few best practices

This commit is contained in:
Liyas Thomas
2020-02-23 22:43:12 +05:30
parent 59ca8cb2c6
commit 010be95ed5
5 changed files with 63 additions and 46 deletions

View File

@@ -43,7 +43,6 @@
</template>
<script>
export default {
props: {
show: Boolean
@@ -62,10 +61,12 @@ export default {
this.$toast.info($t("invalid_environment_name"));
return;
}
let newEnvironment = [{
name: this.$data.name,
variables: []
}]
let newEnvironment = [
{
name: this.$data.name,
variables: []
}
];
this.$store.commit("postwoman/importAddEnvironments", newEnvironment);
this.$emit("hide-modal");
},