Skip to content

Commit

Permalink
Merge pull request #4817 from nextcloud/bugfix/open-card-in-modal
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Jun 20, 2023
2 parents 6a103b5 + 710d648 commit f23deeb
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,19 @@
<router-view />
</NcAppContent>

<NcModal v-if="cardDetailsInModal && $route.params.cardId"
:clear-view-delay="0"
:close-button-contained="true"
size="large"
@close="hideModal()">
<div class="modal__content modal__card">
<router-view name="sidebar" />
</div>
</NcModal>

<router-view name="sidebar" :visible="!cardDetailsInModal || !$route.params.cardId" />
<div v-if="$route.params.id || $route.params.cardId">
<NcModal v-if="cardDetailsInModal && $route.params.cardId"
:clear-view-delay="0"
:close-button-contained="true"
size="large"
@close="hideModal()">
<div class="modal__content modal__card">
<router-view name="sidebar" />
</div>
</NcModal>

<router-view name="sidebar" :visible="!cardDetailsInModal || !$route.params.cardId" />
</div>
</NcContent>
</template>

Expand Down

0 comments on commit f23deeb

Please sign in to comment.