Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(NcDateTime): When relative time is disabled return a string and not the reference to it #5493

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Apr 12, 2024

☑️ Resolves

The .value call was missing in case of disabled relative time. This causes the string to be quoted (because of stringification of the computed value). To prevent similar issues the file is now migrated to Typescript, also fixed some other issues discovered by type checking.

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 3️⃣ Backport to next requested with a Vue 3 upgrade

@susnux susnux added bug Something isn't working 3. to review Waiting for reviews labels Apr 12, 2024
@susnux susnux added this to the 8.12.0 milestone Apr 12, 2024
@susnux
Copy link
Contributor Author

susnux commented Apr 12, 2024

/backport to next

@susnux susnux force-pushed the fix/nc-date-time-fulldate branch 2 times, most recently from 5ae16db to 3518a33 Compare April 12, 2024 19:23
…ot the reference to it

The `.value` call was missing in case of disabled relative time. This causes the string to be quoted (because of stringification of the computed value).
To prevent similar issues the file is now migrated to Typescript, also fixed some other issues discovered by type checking.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Copy link
Contributor

@emoral435 emoral435 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great changes :)

Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@susnux susnux merged commit 7246aa3 into master Apr 19, 2024
19 checks passed
@susnux susnux deleted the fix/nc-date-time-fulldate branch April 19, 2024 19:40
@Antreesy Antreesy mentioned this pull request May 7, 2024
@Antreesy Antreesy modified the milestones: 8.12.0, 8.11.3 May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants