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