diff --git a/app/assets/javascripts/repo/index.js b/app/assets/javascripts/repo/index.js
index 9b70d350280e96d82e4e8f2104c7424c2df51d7c..9a3f2a424a3818a90296ffebcb7b10526f0cc92a 100644
--- a/app/assets/javascripts/repo/index.js
+++ b/app/assets/javascripts/repo/index.js
@@ -75,7 +75,7 @@ function initRepo() {
           <repo-binary-viewer/>
         </div>
         <repo-commit-section/>
-        <popup-dialog :open="dialog.open" kind="warning" title="Are you sure?" body="Are you sure you want to discard your changes?" @toggle="dialogToggled" @submit="dialogSubmitted"></popup-dialog>
+        <popup-dialog primary-button-label="Discard changes" :open="dialog.open" kind="warning" title="Are you sure?" body="Are you sure you want to discard your changes?" @toggle="dialogToggled" @submit="dialogSubmitted"></popup-dialog>
       </div>
     `,
     mixins: [RepoMixin],
diff --git a/app/assets/javascripts/repo/repo_binary_viewer.vue b/app/assets/javascripts/repo/repo_binary_viewer.vue
index accb6312d21cf4715dd27b22bf7a2d2bbe7b812f..ee005366be2ec408d16d4277e76ed7f972d627a9 100644
--- a/app/assets/javascripts/repo/repo_binary_viewer.vue
+++ b/app/assets/javascripts/repo/repo_binary_viewer.vue
@@ -60,7 +60,7 @@ export default RepoBinaryViewer;
 <div id="binary-viewer" v-if="binary && !activeFile.raw">
   <img v-show="binaryTypes.png && binaryLoaded" @error="errored" @load="loaded" :src="pngBlobWithDataURI" :alt="activeFile.name"/>
   <img v-show="binaryTypes.svg" @error="errored" @load="loaded" :src="svgBlobWithDataURI" :alt="activeFile.name"/>
-  <div v-if="binaryTypes.markdown" v-html="activeFile.html"></div>
+  <div v-if="binaryTypes.md" v-html="activeFile.html"></div>
   <div class="binary-unknown" v-if="binaryTypes.unknown">
     <span>Binary file. No preview available.</span>
   </div>