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

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

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Apr 19, 2024

Backport of #5493

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot added bug Something isn't working 3. to review Waiting for reviews labels Apr 19, 2024
…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>
@susnux susnux marked this pull request as ready for review April 20, 2024 20:41
@susnux susnux requested a review from ShGKme April 20, 2024 20:41
Comment on lines -112 to +113
:title="formattedFullTime">{{ formattedTime }}</span>
:title="formattedFullTime"
v-text="formattedTime" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Why replace text content with v-text directive?

Copy link
Contributor

Choose a reason for hiding this comment

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

Weird formatting fix, probably

<span ...
    ...>
    {{ ... }}
</span>

Is what was intended - I can revert as this is unrelated.

Copy link
Contributor

Choose a reason for hiding this comment

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

(while I wanted to do so right now I noticed in this case it looks cleaner the way it is now, wdyt?)

@susnux susnux merged commit cbcd764 into next Apr 22, 2024
18 checks passed
@susnux susnux deleted the backport/5493/next branch April 22, 2024 15:37
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