Site > File Tree > Add new and changed notifications

This commit is contained in:
brunosimon
2017-08-29 20:22:54 +01:00
parent e450579eb9
commit 9576c4782d
3 changed files with 11 additions and 0 deletions
@@ -6,5 +6,7 @@
<span :style="matchingPositions.indexOf(key) !== -1 ? 'font-weight:bold;' : ''">{{ letter }}</span>
</template>
</span>
<span v-if="content.data.isNew" class="new">(new)</span>
<span v-if="content.data.isChanged && !content.data.isNew" class="changed">(changed)</span>
</a>
</div>
+2
View File
@@ -54,6 +54,7 @@ export default
{
if(this.keepLatest)
{
this.file.isChanged = false
this.$store.commit('setVersion', this.versions[0])
}
},
@@ -67,6 +68,7 @@ export default
onVersionClick(version, index)
{
this.keepLatest = index === 0
this.file.isChanged = false
this.$store.commit('setVersion', version)
}