浏览代码

fix(Station): play a private playlist button didn't open sidebar

Kristian Vos 5 年之前
父节点
当前提交
c7035429c9
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      frontend/components/Station/Station.vue

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

@@ -63,7 +63,10 @@
 						href="#"
 						class="no-song"
 						@click="
-							openModal({ sector: 'station', sector: 'playlist' })
+							toggleSidebar({
+								sector: 'station',
+								sidebar: 'playlist'
+							})
 						"
 						>Play a private playlist</a
 					>
@@ -1138,6 +1141,7 @@ export default {
 				}
 			});
 		},
+		...mapActions("sidebars", ["toggleSidebar"]),
 		...mapActions("modals", ["openModal"]),
 		...mapActions("station", [
 			"joinStation",