Display a badge when built in development mode

This commit is contained in:
Pavel Djundik 2019-11-25 20:53:22 +02:00
parent 9051861f4d
commit c70d0fb224

View File

@ -12,6 +12,18 @@
class="logo-inverted" class="logo-inverted"
alt="The Lounge" alt="The Lounge"
/> />
<span
v-if="isDevelopment"
title="The Lounge has been built in development mode"
:style="{
backgroundColor: '#ff9e18',
color: '#000',
padding: '2px',
borderRadius: '4px',
fontSize: '12px',
}"
>DEVELOPER</span
>
</div> </div>
<NetworkList /> <NetworkList />
</div> </div>
@ -66,6 +78,11 @@ export default {
props: { props: {
overlay: HTMLElement, overlay: HTMLElement,
}, },
data() {
return {
isDevelopment: process.env.NODE_ENV !== "production",
};
},
mounted() { mounted() {
this.touchStartPos = null; this.touchStartPos = null;
this.touchCurPos = null; this.touchCurPos = null;