Fix binary viewer not hiding

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册