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"
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>
<NetworkList />
</div>
@ -66,6 +78,11 @@ export default {
props: {
overlay: HTMLElement,
},
data() {
return {
isDevelopment: process.env.NODE_ENV !== "production",
};
},
mounted() {
this.touchStartPos = null;
this.touchCurPos = null;