ソースを参照

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

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 3 年 前
コミット
f2d60b6923
1 ファイル変更6 行追加2 行削除
  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">