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;
</script>
<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"/>
<div v-if="binaryTypes.markdown" v-html="activeFile.html"></div>
<div v-show="binaryTypes.markdown" v-html="activeFile.html"></div>
</div>
</template>
......@@ -83,7 +83,6 @@ 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