File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
apps/files/src/components/FileEntry Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 5050 :aria-label =" t('files', 'Favorite')" >
5151 <FavoriteIcon v-once />
5252 </span >
53+
54+ <OverlayIcon :is =" fileOverlay"
55+ v-if =" fileOverlay"
56+ class =" files-list__row-icon-overlay" />
5357 </span >
5458</template >
5559
@@ -71,9 +75,11 @@ import KeyIcon from 'vue-material-design-icons/Key.vue'
7175import LinkIcon from ' vue-material-design-icons/Link.vue'
7276import NetworkIcon from ' vue-material-design-icons/Network.vue'
7377import TagIcon from ' vue-material-design-icons/Tag.vue'
78+ import PlayCircleIcon from ' vue-material-design-icons/PlayCircle.vue'
7479
7580import { useUserConfigStore } from ' ../../store/userconfig.ts'
7681import FavoriteIcon from ' ./FavoriteIcon.vue'
82+ import { isLivePhoto } from ' ../../services/LivePhotos'
7783
7884export default Vue .extend ({
7985 name: ' FileEntryPreview' ,
@@ -163,6 +169,14 @@ export default Vue.extend({
163169 }
164170 },
165171
172+ fileOverlay() {
173+ if (isLivePhoto (this .source )) {
174+ return PlayCircleIcon
175+ }
176+
177+ return null
178+ },
179+
166180 folderOverlay() {
167181 if (this .source .type !== FileType .Folder ) {
168182 return null
You can’t perform that action at this time.
0 commit comments