Skip to content

Commit

Permalink
feat: add warning about removing legacy links
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hartmann <[email protected]>
  • Loading branch information
Chartman123 committed Aug 11, 2024
1 parent 9729865 commit 2079936
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
23 changes: 23 additions & 0 deletions CHANGELOG.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Changelog

## v4.3.0 - 2024-09-13

- **New question type: Files**

You can now ask for file uploads in your forms!

- **Share your forms via QR code**

Get a QR code representation of your public share link!

- **Set limits for your checkbox questions**

Ask for a minimum/maximum number of answers!

- **Add many options at once**

It's now way easier to add a lot of options to your checkbox/dropdown/radio questions!

- **Deprecation of legacy links**

Legacy share links will be removed in v5.0 of Forms. Forms with such links will show a warning in edit and submit view.
2 changes: 1 addition & 1 deletion src/components/SidebarTabs/SharingSidebarTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
v-tooltip="
t(
'forms',
'For compatibility with the old Sharing, the internal link is still usable as Share link. We recommend replacing the link with a new Share link.',
'For compatibility with the old Sharing, the internal link is still usable as Share link. Please replace the link with a new Share link. The internal sharing link will not work anymore starting with Forms 5.0',
)
"
class="share-div__legacy-warning">
Expand Down
15 changes: 15 additions & 0 deletions src/views/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,19 @@
<p v-if="infoMessage" class="info-message">
{{ infoMessage }}
</p>
<!-- TODO: remove with Forms 5.0
Show info about legacyLink that will be removed -->
<NcNoteCard
v-if="form.access.legacyLink"
type="warning"
:heading="t('forms', 'Legacy link in use')">
{{
t(
'forms',
'This form still uses a deprecated share link, that will be removed in Forms 5.0. Please use the new sharing mechanism.',
)
}}
</NcNoteCard>
</header>
<section>
Expand Down Expand Up @@ -186,6 +199,7 @@ import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
import NcAppContent from '@nextcloud/vue/dist/Components/NcAppContent.js'
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js'
import IconLock from 'vue-material-design-icons/Lock.vue'
import IconPlus from 'vue-material-design-icons/Plus.vue'
Expand Down Expand Up @@ -214,6 +228,7 @@ export default {
NcAppContent,
NcEmptyContent,
NcLoadingIcon,
NcNoteCard,
Question,
QuestionLong,
QuestionShort,
Expand Down
15 changes: 15 additions & 0 deletions src/views/Submit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@
<p v-if="infoMessage" class="info-message">
{{ infoMessage }}
</p>
<!-- TODO: remove with Forms 5.0
Show info about legacyLink that will be removed -->
<NcNoteCard
v-if="form.access.legacyLink"
type="warning"
:heading="t('forms', 'Legacy link in use')">
{{
t(
'forms',
'This form still uses a deprecated share link, that will be removed in Forms 5.0. Please use the new sharing mechanism.',
)
}}
</NcNoteCard>
</header>
<NcEmptyContent
Expand Down Expand Up @@ -179,6 +192,7 @@ import NcDialog from '@nextcloud/vue/dist/Components/NcDialog.js'
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'
import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js'
import IconCancelSvg from '@mdi/svg/svg/cancel.svg?raw'
import IconCheckSvg from '@mdi/svg/svg/check.svg?raw'
Expand All @@ -204,6 +218,7 @@ export default {
NcEmptyContent,
NcLoadingIcon,
NcIconSvgWrapper,
NcNoteCard,
Question,
QuestionLong,
QuestionShort,
Expand Down

0 comments on commit 2079936

Please sign in to comment.