Skip to content
Snippets Groups Projects
Commit 0dbc82bb authored by Ron Lucke's avatar Ron Lucke Committed by Till Glöggler
Browse files

fix #1940

Closes #1940

Merge request studip/studip!1278
parent 5dd284a3
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div v-if="hasFile" class="cw-pdf-header cw-block-title"> <div v-if="hasFile" class="cw-pdf-header cw-block-title">
<button class="cw-pdf-button-prev" :class="{ inactive: pageNum - 1 === 0 }" @click="prevPage" /> <button class="cw-pdf-button-prev" :class="{ inactive: pageNum - 1 === 0 }" @click="prevPage" />
<span class="cw-pdf-title">{{ currentTitle }}</span> <span class="cw-pdf-title">{{ currentTitle }}</span>
<a :href="currentUrl" class="cw-pdf-download" download></a> <a v-if="downloadable" :href="currentUrl" class="cw-pdf-download" download></a>
<span> <span>
<translate :translate-params="{pageNum, pageCount}"> <translate :translate-params="{pageNum, pageCount}">
(Seite %{ pageNum } von %{ pageCount }) (Seite %{ pageNum } von %{ pageCount })
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
return this.block?.attributes?.payload?.title; return this.block?.attributes?.payload?.title;
}, },
downloadable() { downloadable() {
return this.block?.attributes?.payload?.downloadable; return this.block?.attributes?.payload?.downloadable === 'true';
}, },
fileId() { fileId() {
return this.block?.attributes?.payload?.file_id; return this.block?.attributes?.payload?.file_id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment