Browse Source

fix(EditPlaylist): minor improvement to styling when a playlist isn't editable

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 3 năm trước cách đây
mục cha
commit
f2d60b6923
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      frontend/src/components/modals/EditPlaylist/index.vue

+ 6 - 2
frontend/src/components/modals/EditPlaylist/index.vue

@@ -18,7 +18,11 @@
 					<h5>Duration: {{ totalLength() }}</h5>
 				</div>
 
-				<div id="playlist-settings-section" class="section">
+				<div
+					id="playlist-settings-section"
+					v-if="userId === playlist.createdBy || isEditable()"
+					class="section"
+				>
 					<div v-if="isEditable()">
 						<h4 class="section-title">Edit Details</h4>
 
@@ -51,7 +55,7 @@
 						</div>
 					</div>
 
-					<div v-if="userId === playlist.createdBy">
+					<div>
 						<label class="label"> Change privacy </label>
 						<div class="control is-grouped input-with-button">
 							<div class="control is-expanded select">