Skip to content

Commit

Permalink
Merge pull request #274 from RyanCoulsonCA/fix-252
Browse files Browse the repository at this point in the history
allow changing left panel to any type
  • Loading branch information
yileifeng authored Apr 16, 2024
2 parents 63e78cc + ee874dc commit f6ce309
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/components/editor/slide-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
<div class="flex mt-4">
<span class="font-bold text-xl">{{ $t('editor.slides.content') }}:</span>
<span class="ml-auto flex-grow"></span>
<div v-if="panelIndex === 1 || rightOnly" class="flex flex-col mr-8">
<div class="flex flex-col mr-8">
<label class="editor-label text-left text-lg">{{ $t('editor.slides.contentType') }}:</label>
<select
ref="typeSelector"
Expand Down Expand Up @@ -224,13 +224,21 @@
</div>
<confirmation-modal
:name="`change-slide-${slideIndex}`"
:message="$t('editor.slides.changeSlide.confirm', { title: currentSlide.title })"
:message="
$t('editor.slides.changeSlide.confirm', {
title: currentSlide.title
})
"
@ok="changePanelType(determineEditorType(currentSlide.panel[panelIndex]), newType)"
@Cancel="cancelTypeChange"
/>
<confirmation-modal
:name="`right-only-${slideIndex}`"
:message="$t('editor.slides.changeSlide.confirm', { title: currentSlide.title })"
:message="
$t('editor.slides.changeSlide.confirm', {
title: currentSlide.title
})
"
@ok="toggleRightOnly()"
@Cancel="rightOnly = !rightOnly"
/>
Expand Down

0 comments on commit f6ce309

Please sign in to comment.