added role support

This commit is contained in:
Edward Tirado Jr 2026-04-09 18:44:44 -05:00
parent cab29c8c56
commit 3c5c22aad4
11 changed files with 745 additions and 32 deletions

View file

@ -5,6 +5,7 @@ import posterPlaceholder from "~/assets/img/poster-placeholder.svg";
const props = defineProps<{
selectedMovie: Movie;
canEdit: boolean;
}>();
const emit = defineEmits(['remove-movie']);
@ -56,7 +57,7 @@ const criticScores = computed(() => {
</div>
</dl>
<button type="button" @click="emit('remove-movie', selectedMovie.id)">Remove From List</button>
<button v-if="canEdit" type="button" @click="emit('remove-movie', selectedMovie.id)">Remove From List</button>
</div>
</template>