|
@@ -76,7 +76,14 @@
|
|
v-if="isOwnerOrAdmin(element)"
|
|
v-if="isOwnerOrAdmin(element)"
|
|
class="material-icons manage-station"
|
|
class="material-icons manage-station"
|
|
@click.prevent="
|
|
@click.prevent="
|
|
- manageStation(element._id)
|
|
|
|
|
|
+ openModal({
|
|
|
|
+ modal: 'manageStation',
|
|
|
|
+ data: {
|
|
|
|
+ stationId:
|
|
|
|
+ element._id,
|
|
|
|
+ sector: 'home'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
"
|
|
"
|
|
content="Manage Station"
|
|
content="Manage Station"
|
|
v-tippy
|
|
v-tippy
|
|
@@ -87,7 +94,14 @@
|
|
v-else
|
|
v-else
|
|
class="material-icons manage-station"
|
|
class="material-icons manage-station"
|
|
@click.prevent="
|
|
@click.prevent="
|
|
- manageStation(element._id)
|
|
|
|
|
|
+ openModal({
|
|
|
|
+ modal: 'manageStation',
|
|
|
|
+ data: {
|
|
|
|
+ stationId:
|
|
|
|
+ element._id,
|
|
|
|
+ sector: 'home'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
"
|
|
"
|
|
content="View Queue"
|
|
content="View Queue"
|
|
v-tippy
|
|
v-tippy
|
|
@@ -327,7 +341,13 @@
|
|
v-if="isOwnerOrAdmin(station)"
|
|
v-if="isOwnerOrAdmin(station)"
|
|
class="material-icons manage-station"
|
|
class="material-icons manage-station"
|
|
@click.prevent="
|
|
@click.prevent="
|
|
- manageStation(station._id)
|
|
|
|
|
|
+ openModal({
|
|
|
|
+ modal: 'manageStation',
|
|
|
|
+ data: {
|
|
|
|
+ stationId: station._id,
|
|
|
|
+ sector: 'home'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
"
|
|
"
|
|
content="Manage Station"
|
|
content="Manage Station"
|
|
v-tippy
|
|
v-tippy
|
|
@@ -338,7 +358,13 @@
|
|
v-else
|
|
v-else
|
|
class="material-icons manage-station"
|
|
class="material-icons manage-station"
|
|
@click.prevent="
|
|
@click.prevent="
|
|
- manageStation(station._id)
|
|
|
|
|
|
+ openModal({
|
|
|
|
+ modal: 'manageStation',
|
|
|
|
+ data: {
|
|
|
|
+ stationId: station._id,
|
|
|
|
+ sector: 'home'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
"
|
|
"
|
|
content="View Queue"
|
|
content="View Queue"
|
|
v-tippy
|
|
v-tippy
|
|
@@ -487,14 +513,7 @@
|
|
</div>
|
|
</div>
|
|
<main-footer />
|
|
<main-footer />
|
|
</div>
|
|
</div>
|
|
- <manage-station
|
|
|
|
- v-if="modals.manageStation"
|
|
|
|
- :station-id="editingStationId"
|
|
|
|
- sector="home"
|
|
|
|
- />
|
|
|
|
<edit-song v-if="modals.editSong" song-type="songs" sector="home" />
|
|
<edit-song v-if="modals.editSong" song-type="songs" sector="home" />
|
|
- <report v-if="modals.report" />
|
|
|
|
- <modal-manager />
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -506,20 +525,11 @@ import Toast from "toasters";
|
|
|
|
|
|
import SongThumbnail from "@/components/SongThumbnail.vue";
|
|
import SongThumbnail from "@/components/SongThumbnail.vue";
|
|
|
|
|
|
-import ModalManager from "@/components/ModalManager.vue";
|
|
|
|
-
|
|
|
|
import ws from "@/ws";
|
|
import ws from "@/ws";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- ModalManager,
|
|
|
|
SongThumbnail,
|
|
SongThumbnail,
|
|
- ManageStation: defineAsyncComponent(() =>
|
|
|
|
- import("@/components/modals/ManageStation/index.vue")
|
|
|
|
- ),
|
|
|
|
- Report: defineAsyncComponent(() =>
|
|
|
|
- import("@/components/modals/Report.vue")
|
|
|
|
- ),
|
|
|
|
EditSong: defineAsyncComponent(() =>
|
|
EditSong: defineAsyncComponent(() =>
|
|
import("@/components/modals/EditSong")
|
|
import("@/components/modals/EditSong")
|
|
),
|
|
),
|
|
@@ -829,10 +839,6 @@ export default {
|
|
res => new Toast(res.message)
|
|
res => new Toast(res.message)
|
|
);
|
|
);
|
|
},
|
|
},
|
|
- manageStation(stationId) {
|
|
|
|
- this.editingStationId = stationId;
|
|
|
|
- this.openModal("manageStation");
|
|
|
|
- },
|
|
|
|
...mapActions("modalVisibility", ["openModal"]),
|
|
...mapActions("modalVisibility", ["openModal"]),
|
|
...mapActions("station", ["updateIfStationIsFavorited"])
|
|
...mapActions("station", ["updateIfStationIsFavorited"])
|
|
}
|
|
}
|