@@ -119,6 +119,9 @@
'handleSocketConnection': function() {
this.socketConnected = window.socketConnected;
this.$broadcast('handleSocketConnection');
+ },
+ 'closeModal': function() {
+ this.$broadcast('closeModal');
}
},
components: { Toast, WhatIsNew, LoginModal, RegisterModal, CreateCommunityStation }
@@ -92,6 +92,11 @@
clearInterval(socketInterval);
}, 100);
+ events: {
+ closeModal: function() {
+ this.$parent.toggleModal('addSongToQueue')
+ }
</script>
@@ -70,6 +70,11 @@
});
this.toggleModal();
+ this.$dispatch('toggleModal', 'createCommunityStation');
@@ -98,6 +98,25 @@
</div>
</template>
+<script>
+ export default {
+ methods: {
+ toggleModal: function () {
+ this.$dispatch('toggleModal', 'login');
+ submitModal: function () {
+ this.$dispatch('login');
+ this.toggleModal();
+ this.$parent.toggleModal()
+</script>
+
<style type='scss' scoped>
input[type=range] {
-webkit-appearance: none;
@@ -94,6 +94,11 @@
+ this.$parent.toggleModal("editStation")
@@ -38,6 +38,11 @@
this.$dispatch('login');
@@ -49,6 +49,11 @@
+ this.$parent.toggleModal("createPlaylist");
@@ -181,6 +181,11 @@
+ this.$parent.toggleModal("editPlaylist");
@@ -56,6 +56,11 @@
this.$dispatch('register');
+ this.$dispatch('toggleModal', 'register');
@@ -77,6 +77,11 @@
formatDate: unix => {
return moment(unix).format('DD-MM-YYYY');
+ this.isModalActive = false;
@@ -34,6 +34,12 @@ lofig.get('serverDomain', function(res) {
}, 10000);
+$(document).keydown(function(e) {
+ if (e.which === 27) {
+ router.app.$dispatch("closeModal");
+});
router.beforeEach(transition => {
if (window.stationInterval) {
clearInterval(window.stationInterval);