Rename component imports in the viewer component

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2022-10-21 10:56:38 +02:00
Родитель b6c858d882
Коммит ca456f478e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4C614C6ED2CDE6DF
1 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -26,15 +26,15 @@
<div v-if="showLoadingIndicator" <div v-if="showLoadingIndicator"
id="office-viewer__loading-overlay" id="office-viewer__loading-overlay"
:class="{ debug: debug }"> :class="{ debug: debug }">
<EmptyContent v-if="!error" icon="icon-loading"> <NcEmptyContent v-if="!error" icon="icon-loading">
{{ t('richdocuments', 'Loading {filename} …', { filename: basename }, 1, {escape: false}) }} {{ t('richdocuments', 'Loading {filename} …', { filename: basename }, 1, {escape: false}) }}
<template #desc> <template #desc>
<button @click="close"> <button @click="close">
{{ t('richdocuments', 'Cancel') }} {{ t('richdocuments', 'Cancel') }}
</button> </button>
</template> </template>
</EmptyContent> </NcEmptyContent>
<EmptyContent v-else icon="icon-error"> <NcEmptyContent v-else icon="icon-error">
{{ t('richdocuments', 'Document loading failed') }} {{ t('richdocuments', 'Document loading failed') }}
<template #desc> <template #desc>
{{ errorMessage }}<br><br> {{ errorMessage }}<br><br>
@ -42,11 +42,11 @@
{{ t('richdocuments', 'Close') }} {{ t('richdocuments', 'Close') }}
</button> </button>
</template> </template>
</EmptyContent> </NcEmptyContent>
</div> </div>
<div v-show="!useNativeHeader && showIframe" class="office-viewer__header"> <div v-show="!useNativeHeader && showIframe" class="office-viewer__header">
<div class="avatars"> <div class="avatars">
<Avatar v-for="view in avatarViews" <NcAvatar v-for="view in avatarViews"
:key="view.ViewId" :key="view.ViewId"
:user="view.UserId" :user="view.UserId"
:display-name="view.UserName" :display-name="view.UserName"
@ -54,9 +54,9 @@
:show-user-status-compact="false" :show-user-status-compact="false"
:style="viewColor(view)" /> :style="viewColor(view)" />
</div> </div>
<Actions> <NcActions>
<ActionButton icon="office-viewer__header__icon-menu-sidebar" @click="share" /> <NcActionButton icon="office-viewer__header__icon-menu-sidebar" @click="share" />
</Actions> </NcActions>
</div> </div>
<iframe id="collaboraframe" <iframe id="collaboraframe"
ref="documentFrame" ref="documentFrame"
@ -68,7 +68,7 @@
</template> </template>
<script> <script>
import { Avatar, Actions, ActionButton, EmptyContent } from '@nextcloud/vue' import { NcAvatar, NcActions, NcActionButton, NcEmptyContent } from '@nextcloud/vue'
import { loadState } from '@nextcloud/initial-state' import { loadState } from '@nextcloud/initial-state'
import { basename, dirname } from 'path' import { basename, dirname } from 'path'
@ -92,10 +92,10 @@ const LOADING_STATE = {
export default { export default {
name: 'Office', name: 'Office',
components: { components: {
Avatar, NcAvatar,
Actions, NcActions,
ActionButton, NcActionButton,
EmptyContent, NcEmptyContent,
}, },
props: { props: {
filename: { filename: {