Skip to content

Commit

Permalink
Make components compatible to nextcloud-vue 8
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hartmann <[email protected]>
  • Loading branch information
Chartman123 committed Oct 18, 2023
1 parent a4914d0 commit b9c11d4
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions src/Forms.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</NcAppNavigationNew>
<template #list>
<!-- Form-Owner-->
<NcAppNavigationCaption v-if="!noOwnedForms" :title="t('forms', 'Your Forms')" />
<NcAppNavigationCaption v-if="!noOwnedForms" :name="t('forms', 'Your Forms')" />
<AppNavigationForm v-for="form in forms"
:key="form.id"
:form="form"
Expand All @@ -44,7 +44,7 @@
@delete="onDeleteForm" />

<!-- Shared Forms-->
<NcAppNavigationCaption v-if="!noSharedForms" :title="t('forms', 'Shared with you')" />
<NcAppNavigationCaption v-if="!noSharedForms" :name="t('forms', 'Shared with you')" />
<AppNavigationForm v-for="form in sharedForms"
:key="form.id"
:form="form"
Expand All @@ -57,14 +57,14 @@
<!-- No forms & loading emptycontents -->
<NcAppContent v-if="loading || !hasForms || !routeHash || !routeAllowed">
<NcEmptyContent v-if="loading"
:title="t('forms', 'Loading forms …')">
:name="t('forms', 'Loading forms …')">
<template #icon>
<NcLoadingIcon :size="64" />
</template>
</NcEmptyContent>

<NcEmptyContent v-else-if="!hasForms"
:title="t('forms', 'No forms created yet')">
:name="t('forms', 'No forms created yet')">
<template #icon>
<FormsIcon :size="64" />
</template>
Expand All @@ -76,7 +76,7 @@
</NcEmptyContent>

<NcEmptyContent v-else
:title="canCreateForms ? t('forms', 'Select a form or create a new one') : t('forms', 'Please select a form')">
:name="canCreateForms ? t('forms', 'Select a form or create a new one') : t('forms', 'Please select a form')">
<template #icon>
<FormsIcon :size="64" />
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/FormsEmptyContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<template>
<NcContent app-name="forms" class="forms-emptycontent">
<NcEmptyContent :title="currentModel.title"
<NcEmptyContent :name="currentModel.title"
:description="currentModel.description">
<template #icon>
<Icon :is="currentModel.icon" :size="64" />
Expand Down
4 changes: 2 additions & 2 deletions src/FormsSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<template>
<div>
<NcSettingsSection :title="t('forms', 'Form creation')">
<NcSettingsSection :name="t('forms', 'Form creation')">
<NcCheckboxRadioSwitch ref="switchRestrictCreation"
:checked.sync="appConfig.restrictCreation"
class="forms-settings__creation__switch"
Expand All @@ -39,7 +39,7 @@
label="displayName"
@input="onCreationAllowedGroupsChange" />
</NcSettingsSection>
<NcSettingsSection :title="t('forms', 'Form sharing')">
<NcSettingsSection :name="t('forms', 'Form sharing')">
<NcCheckboxRadioSwitch ref="switchAllowPublicLink"
:checked.sync="appConfig.allowPublicLink"
type="switch"
Expand Down
4 changes: 2 additions & 2 deletions src/components/AppNavigationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<template>
<NcListItem ref="navigationItem"
:title="formTitle"
:name="formTitle"
:to="{
name: routerTarget,
params: { hash: form.hash }
Expand All @@ -37,7 +37,7 @@
<IconCheck v-else-if="isExpired" :size="16" />
<FormsIcon v-else :size="16" />
</template>
<template v-if="hasSubtitle" #subtitle>
<template v-if="hasSubtitle" #subname>
{{ formSubtitle }}
</template>
<template v-if="!loading && !readOnly" #actions>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SidebarTabs/SharingShareDiv.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<span>{{ displayNameAppendix }}</span>
</div>
<NcActions class="share-div__actions">
<NcActionCaption :title="t('forms', 'Permissions')" />
<NcActionCaption :name="t('forms', 'Permissions')" />
<NcActionCheckbox :checked="canAccessResults" @update:checked="updatePermissionResults">
{{ t('forms', 'View responses') }}
</NcActionCheckbox>
Expand Down
2 changes: 1 addition & 1 deletion src/components/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default {
align-items: center;
align-self: flex-end;
justify-content: flex-end;
padding: calc(var(--default-grid-baseline, 4px) * 2);
padding: var(--app-navigation-padding);
&__view-select {
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions src/views/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<template>
<NcAppContent v-if="isLoadingForm">
<NcEmptyContent :title="t('forms', 'Loading {title} …', { title: form.title })">
<NcEmptyContent :name="t('forms', 'Loading {title} …', { title: form.title })">
<template #icon>
<NcLoadingIcon :size="64" />
</template>
Expand Down Expand Up @@ -108,7 +108,7 @@
<div class="question-menu">
<NcActions ref="questionMenu"
:open.sync="questionMenuOpened"
:menu-title="t('forms', 'Add a question')"
:menu-name="t('forms', 'Add a question')"
:aria-label="t('forms', 'Add a question')"
:primary="true">
<template #icon>
Expand Down
4 changes: 2 additions & 2 deletions src/views/Results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<template>
<NcAppContent v-if="loadingResults">
<NcEmptyContent :title="t('forms', 'Loading responses …')">
<NcEmptyContent :name="t('forms', 'Loading responses …')">
<template #icon>
<NcLoadingIcon :size="64" />
</template>
Expand Down Expand Up @@ -95,7 +95,7 @@
<!-- No submissions -->
<section v-if="noSubmissions">
<NcEmptyContent :title="t('forms', 'No responses yet')"
<NcEmptyContent :name="t('forms', 'No responses yet')"
:description="t('forms', 'Results of submitted forms will show up here')">
<template #icon>
<IconPoll :size="64" />
Expand Down
2 changes: 1 addition & 1 deletion src/views/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<template>
<NcAppSidebar v-show="sidebarOpened"
:active="active"
:title="t('forms', 'Form settings')"
:name="t('forms', 'Form settings')"
@close="onClose"
@update:active="onUpdateActive">
<NcAppSidebarTab id="forms-sharing"
Expand Down
8 changes: 4 additions & 4 deletions src/views/Submit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<template>
<NcAppContent v-if="isLoadingForm">
<NcEmptyContent :title="t('forms', 'Loading {title} …', { title: form.title })">
<NcEmptyContent :name="t('forms', 'Loading {title} …', { title: form.title })">
<template #icon>
<NcLoadingIcon :size="64" />
</template>
Expand Down Expand Up @@ -58,13 +58,13 @@
</header>
<NcEmptyContent v-if="loading"
:title="t('forms', 'Submitting form …')">
:name="t('forms', 'Submitting form …')">
<template #icon>
<NcLoadingIcon :size="64" />
</template>
</NcEmptyContent>
<NcEmptyContent v-else-if="success || !form.canSubmit"
:title="t('forms', 'Thank you for completing the form!')"
:name="t('forms', 'Thank you for completing the form!')"
:description="form.submissionMessage">
<template #icon>
<IconCheck :size="64" />
Expand All @@ -75,7 +75,7 @@
</template>
</NcEmptyContent>
<NcEmptyContent v-else-if="isExpired"
:title="t('forms', 'Form expired')"
:name="t('forms', 'Form expired')"
:description="t('forms', 'This form has expired and is no longer taking answers')">
<template #icon>
<IconCheck :size="64" />
Expand Down

0 comments on commit b9c11d4

Please sign in to comment.