소스 검색

Added ESC listener for Report Modal

theflametrooper 8 년 전
부모
커밋
92f4fca66b
3개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      frontend/App.vue
  2. 4 2
      frontend/components/Modals/Report.vue
  3. 1 0
      frontend/components/Station/Station.vue

+ 1 - 1
frontend/App.vue

@@ -56,7 +56,7 @@
 				if (event.which == 13) b(); return false;
 			}
 		},
-		readyL function () {
+		ready: function () {
 			let _this = this;
 			auth.getStatus((authenticated, role, username, userId) => {
 				_this.socket = window.socket;

+ 4 - 2
frontend/components/Modals/Report.vue

@@ -205,8 +205,10 @@
 				// });
 			}
 		},
-		ready() {
-			console.log(this.$parent.currentSong)
+		events: {
+			closeModal: function () {
+				this.$parent.toggleModal('report');
+			}
 		}
 	}
 </script>

+ 1 - 0
frontend/components/Station/Station.vue

@@ -124,6 +124,7 @@
 				else if (type == 'editPlaylist') this.modals.editPlaylist = !this.modals.editPlaylist;
 				else if (type == 'createPlaylist') this.modals.createPlaylist = !this.modals.createPlaylist;
 				else if (type == 'editStation') this.modals.editStation = !this.modals.editStation;
+				else if (type == 'report') this.modals.report = !this.modals.report;
 			},
 			youtubeReady: function() {
 				let local = this;