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

Adding an NA icon in case of no flag image in Node details #3276

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

maayarosama
Copy link
Contributor

Description

Adding an NA icon in case of no flag image in Node details
Screenshot from 2024-08-08 17-08-03

Related Issues

Documentation PR

For UI changes, Please provide the Documetation PR on info_grid

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings
  • Screenshots/Video attached (needed for UI changes)

@@ -40,6 +40,7 @@

<v-tooltip class="overflowText" v-if="item.hint && !item.icon" location="top" :text="item.hint">
<template #activator="{ props }">
<span class="flag-avatar" v-if="item.name === 'Flag' && !item.imgSrc">NA</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be better if we added some padding top to the span?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

padding is added in flag-avatar class

Comment on lines 38 to 39
const x = getCountryFlagSrc();
console.log("x ", x);
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove the debug lines

@maayarosama maayarosama requested a review from 0oM4R August 12, 2024 19:19
@@ -48,6 +48,9 @@ export default {
const getCountryFlagSrc = () => {
const conuntryCode = getCountryCode(props.node);

if (conuntryCode.length > 2) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It will be great if you fix this country typo

@maayarosama maayarosama merged commit 8d6400a into development Aug 14, 2024
10 checks passed
@maayarosama maayarosama deleted the development_flag_icon branch August 14, 2024 12:48
@xmonader xmonader added this to the 2.6.0 milestone Sep 24, 2024
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.

4 participants