Commit 631118e7 authored by Jacob Schatz's avatar Jacob Schatz

Fixes raw bug not fixed yet.

parent e0cfc27c
......@@ -54,7 +54,7 @@ export default RepoBinaryViewer;
</script>
<template>
<div id="binary-viewer" v-if="binary">
<div id="binary-viewer" v-if="binary && !activeFile.raw">
<img v-show="binaryTypes.png && binaryLoaded" @error="errored" @load="loaded" :src="pngBlobWithDataURI" :alt="activeFile.name"/>
<div v-if="binaryTypes.markdown" v-html="activeFile.html"></div>
</div>
......
......@@ -81,6 +81,7 @@ const RepoStore = {
toggleRawPreview() {
RepoStore.activeFile.raw = !RepoStore.activeFile.raw;
RepoStore.activeFileLabel = RepoStore.activeFile.raw ? 'Display rendered file' : 'Display source';
console.log('raw?', RepoStore.activeFile.raw)
},
setActiveFiles(file) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment