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

Display round-trip time on the subtitle of the custom service ping #800

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sebersta
Copy link

@sebersta sebersta commented Aug 12, 2024

Description

Display round-trip time on the subtitle of the custom service ping. Toggled by showRtt, default set to false.

Screenshot 2024-08-12 at 06 52 00

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I've read & comply with the contributing guidelines
  • I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers.
  • I have made corresponding changes to the documentation (README.md).
  • I've checked my modifications for any breaking changes, especially in the config.yml file

Copy link
Owner

@bastienwirtz bastienwirtz left a comment

Choose a reason for hiding this comment

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

Nice addition @sebersta, thanks for contributing!
Just a few thing, and we should be good to go.

Comment on lines +11 to +13
<template v-if="status === 'online' && item.showRtt">
{{ rtt }} ms
</template>
Copy link
Owner

Choose a reason for hiding this comment

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

It would be great to still have the subtitle if showRtt is set to false, could you add it?
Also maybe, if showRtt is set to true, and service is not online, it could say "Unknown RTT" or something like that?


```yaml
- name: "Awesome app"
type: Ping
logo: "assets/tools/sample.png"
subtitle: "Bookmark example"
Copy link
Owner

Choose a reason for hiding this comment

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

If you support both subtitle and showRtt (see comment below), you can keep this line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants