diff options
Diffstat (limited to 'apps/files/src/components/FileEntry.vue')
-rw-r--r-- | apps/files/src/components/FileEntry.vue | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue index 537279cabfe..e6592f7ba0c 100644 --- a/apps/files/src/components/FileEntry.vue +++ b/apps/files/src/components/FileEntry.vue @@ -75,7 +75,7 @@ <span v-if="isFavorite" class="files-list__row-icon-favorite" :aria-label="t('files', 'Favorite')"> - <FavoriteIcon :aria-hidden="true" /> + <FavoriteIcon /> </span> </span> @@ -146,7 +146,7 @@ @click="onActionClick(action)"> <template #icon> <NcLoadingIcon v-if="loading === action.id" :size="18" /> - <CustomSvgIconRender v-else :svg="action.iconSvgInline([source], currentView)" /> + <NcIconSvgWrapper v-else :svg="action.iconSvgInline([source], currentView)" /> </template> {{ actionDisplayName(action) }} </NcActionButton> @@ -186,7 +186,7 @@ </tr> </template> -<script lang='ts'> +<script lang="ts"> import type { PropType } from 'vue' import { emit } from '@nextcloud/event-bus' @@ -213,6 +213,7 @@ import AccountPlusIcon from 'vue-material-design-icons/AccountPlus.vue' import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' +import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js' import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js' import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js' @@ -229,7 +230,6 @@ import { useRenamingStore } from '../store/renaming.ts' import { useSelectionStore } from '../store/selection.ts' import { useUserConfigStore } from '../store/userconfig.ts' import CustomElementRender from './CustomElementRender.vue' -import CustomSvgIconRender from './CustomSvgIconRender.vue' import FavoriteIcon from './FavoriteIcon.vue' import logger from '../logger.js' import { loadState } from '@nextcloud/initial-state' @@ -248,7 +248,6 @@ export default Vue.extend({ AccountGroupIcon, AccountPlusIcon, CustomElementRender, - CustomSvgIconRender, FavoriteIcon, FileIcon, FolderIcon, @@ -258,6 +257,7 @@ export default Vue.extend({ NcActionButton, NcActions, NcCheckboxRadioSwitch, + NcIconSvgWrapper, NcLoadingIcon, NcTextField, NetworkIcon, @@ -656,6 +656,7 @@ export default Vue.extend({ /** * If renaming starts, select the file name * in the input, without the extension. + * @param renaming */ isRenaming(renaming) { if (renaming) { |