Ver Fonte

fix(Station): Unable to auto request from manage station

Owen Diffey há 2 anos atrás
pai
commit
f62639ee6d

+ 4 - 3
frontend/src/components/Request.vue

@@ -11,7 +11,7 @@
 					Songs
 				</button>
 				<button
-					v-if="sector === 'station'"
+					v-if="!disableAutoRequest"
 					class="button is-default"
 					ref="autorequest-tab"
 					:class="{ selected: tab === 'autorequest' }"
@@ -167,7 +167,7 @@
 				</div>
 			</div>
 			<playlist-tab-base
-				v-if="sector === 'station'"
+				v-if="!disableAutoRequest"
 				class="tab"
 				v-show="tab === 'autorequest'"
 				:type="'autorequest'"
@@ -197,7 +197,8 @@ export default {
 	},
 	mixins: [SearchYoutube, SearchMusare],
 	props: {
-		sector: { type: String, default: "station" }
+		sector: { type: String, default: "station" },
+		disableAutoRequest: { type: Boolean, default: false }
 	},
 	data() {
 		return {

+ 1 - 0
frontend/src/components/modals/ManageStation/index.vue

@@ -136,6 +136,7 @@
 							class="tab"
 							v-show="tab === 'request'"
 							:sector="'manageStation'"
+							:disable-auto-request="sector !== 'station'"
 						/>
 						<playlist-tab-base
 							v-if="isOwnerOrAdmin()"