Merge remote-tracking branch 'upstream/main' into newstate/firebase

This commit is contained in:
Andrew Bastin
2021-06-19 20:41:25 -04:00
41 changed files with 1568 additions and 3022 deletions

View File

@@ -1,10 +1,5 @@
<template>
<AppSection
ref="environments"
icon="history"
:label="$t('environments')"
no-legend
>
<AppSection ref="environments" :label="$t('environments')">
<div class="show-on-large-screen">
<span class="select-wrapper">
<select
@@ -103,21 +98,6 @@ export default {
setCurrentEnvironment(val)
},
},
mounted() {
this._keyListener = function (e) {
if (e.key === "Escape") {
e.preventDefault()
this.showModalImportExport =
this.showModalAdd =
this.showModalEdit =
false
}
}
document.addEventListener("keydown", this._keyListener.bind(this))
},
beforeDestroy() {
document.removeEventListener("keydown", this._keyListener)
},
methods: {
displayModalAdd(shouldDisplay) {
this.showModalAdd = shouldDisplay