Commit e7147cb0 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Fix binary viewer not hiding

parent 6c3f0d51
...@@ -54,8 +54,8 @@ export default RepoBinaryViewer; ...@@ -54,8 +54,8 @@ export default RepoBinaryViewer;
</script> </script>
<template> <template>
<div id="binary-viewer" v-if="binary && !activeFile.raw"> <div id="binary-viewer" v-show="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-show="binaryTypes.markdown" v-html="activeFile.html"></div>
</div> </div>
</template> </template>
...@@ -83,7 +83,6 @@ const RepoStore = { ...@@ -83,7 +83,6 @@ 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