Skip to content

Commit 4e8b927

Browse files
chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 3bcfa63 commit 4e8b927

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

apps/files_versions/src/components/Version.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@ import { joinPaths } from '@nextcloud/paths'
128128
import { getRootUrl } from '@nextcloud/router'
129129
import { defineComponent } from 'vue'
130130
131-
import axios from '@nextcloud/axios'
132-
import logger from '../utils/logger'
133-
134131
import BackupRestore from 'vue-material-design-icons/BackupRestore.vue'
135132
import Delete from 'vue-material-design-icons/Delete.vue'
136133
import Download from 'vue-material-design-icons/Download.vue'
@@ -206,7 +203,6 @@ export default defineComponent({
206203
previewLoaded: false,
207204
previewErrored: false,
208205
capabilities: loadState('core', 'capabilities', { files: { version_labeling: false, version_deletion: false } }),
209-
versionAuthor: '' as string|null,
210206
}
211207
},
212208
@@ -233,6 +229,16 @@ export default defineComponent({
233229
return label
234230
},
235231
232+
versionAuthor() {
233+
if (!this.version.author || !this.version.authorName) {
234+
return ''
235+
}
236+
if (this.version.author === getCurrentUser()?.uid) {
237+
return t('files_versions', 'You')
238+
}
239+
return this.version.authorName ?? this.version.author
240+
},
241+
236242
downloadURL(): string {
237243
if (this.isCurrent) {
238244
return getRootUrl() + joinPaths('/remote.php/webdav', this.fileInfo.path, this.fileInfo.name)

0 commit comments

Comments
 (0)