diff options
author | André Jaenisch <Ryuno-Ki@users.noreply.github.com> | 2022-10-01 16:26:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-01 22:26:38 +0800 |
commit | 04e97b83115e7439d43c0ede5fe2d1b50d201c52 (patch) | |
tree | 073a20e9377c5197112327afd11d7a6f2cccb268 /web_src/js/components/DiffFileList.vue | |
parent | 726afe8a9e33128476e1dc85f262fe56f995d12c (diff) | |
download | gitea-04e97b83115e7439d43c0ede5fe2d1b50d201c52.tar.gz gitea-04e97b83115e7439d43c0ede5fe2d1b50d201c52.zip |
Refactor from Vue2 to Vue3 (#20044)
Close #19902
Diffstat (limited to 'web_src/js/components/DiffFileList.vue')
-rw-r--r-- | web_src/js/components/DiffFileList.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/components/DiffFileList.vue b/web_src/js/components/DiffFileList.vue index 2a9aa77377..da53be3b46 100644 --- a/web_src/js/components/DiffFileList.vue +++ b/web_src/js/components/DiffFileList.vue @@ -1,5 +1,5 @@ <template> - <ol class="diff-detail-box diff-stats m-0" id="diff-files" v-if="fileListIsVisible"> + <ol class="diff-detail-box diff-stats m-0" ref="root" v-if="fileListIsVisible"> <li v-for="file in files" :key="file.NameHash"> <div class="bold df ac pull-right"> <span v-if="file.IsBin" class="ml-1 mr-3">{{ binaryFileMessage }}</span> @@ -37,7 +37,7 @@ export default { fileListIsVisible(newValue) { if (newValue === true) { this.$nextTick(() => { - for (const el of this.$el.querySelectorAll('.tooltip')) { + for (const el of this.$refs.root.querySelectorAll('.tooltip')) { initTooltip(el); } }); |