epic demo mode
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2020-12-08 21:21:41 +01:00
parent f1e309381a
commit 1a3df3a67d

View File

@ -26,6 +26,10 @@
<element-adder @addElement="newElement"/>
</md-content>
<md-snackbar md-position="left" :md-duration="4000" :md-active.sync="showDemoMessage">
<span>Your streaming solution is ready!</span>
</md-snackbar>
</div>
</template>
@ -63,7 +67,8 @@ export default {
scale: 1,
nodes: [],
links: []
}
},
showDemoMessage: false
}),
methods: {
newElement(type) {
@ -321,6 +326,8 @@ export default {
Promise.all(delete_promises).then(() => {
this.processingNodeChanges = false;
// Epic demo mode
this.showDemoMessage = this.$store.state.auth.name === 'demo';
});
});