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; ...@@ -54,7 +54,7 @@ export default RepoBinaryViewer;
</script> </script>
<template> <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"/> <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 v-if="binaryTypes.markdown" v-html="activeFile.html"></div>
</div> </div>
......
...@@ -81,6 +81,7 @@ const RepoStore = { ...@@ -81,6 +81,7 @@ const RepoStore = {
toggleRawPreview() { toggleRawPreview() {
RepoStore.activeFile.raw = !RepoStore.activeFile.raw; RepoStore.activeFile.raw = !RepoStore.activeFile.raw;
RepoStore.activeFileLabel = RepoStore.activeFile.raw ? 'Display rendered file' : 'Display source'; RepoStore.activeFileLabel = RepoStore.activeFile.raw ? 'Display rendered file' : 'Display source';
console.log('raw?', RepoStore.activeFile.raw)
}, },
setActiveFiles(file) { 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