mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Merge pull request #62 from JaiSharma1710/bugfix/61-default-item-incase-of-empty-label-list
#61 Added default item in case of empty list in labels dropdown in subscriber section
This commit is contained in:
commit
7115426432
@ -206,11 +206,15 @@ export const Subscribers = () => {
|
|||||||
),
|
),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{(labels || []).map((label) => (
|
{!!labels.length ? (
|
||||||
<MenuItem key={label.id} value={label.id}>
|
labels.map((label) => (
|
||||||
{label.name}
|
<MenuItem key={label.id} value={label.id}>
|
||||||
</MenuItem>
|
{label.name}
|
||||||
))}
|
</MenuItem>
|
||||||
|
))
|
||||||
|
) : (
|
||||||
|
<MenuItem disabled>{t("message.no_label_found")}</MenuItem>
|
||||||
|
)}
|
||||||
</Input>
|
</Input>
|
||||||
</Grid>
|
</Grid>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
|
|||||||
@ -99,7 +99,8 @@
|
|||||||
"invalid_max_fallback_attempt_limit": "Max fallback attempt limit must have positive value",
|
"invalid_max_fallback_attempt_limit": "Max fallback attempt limit must have positive value",
|
||||||
"regex_is_invalid": "Regex is invalid",
|
"regex_is_invalid": "Regex is invalid",
|
||||||
"attachment_not_found": "Attachment is not found",
|
"attachment_not_found": "Attachment is not found",
|
||||||
"title_length_exceeded": "You have reached the maximum length"
|
"title_length_exceeded": "You have reached the maximum length",
|
||||||
|
"no_label_found": "No label found"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"terms": "Terms of Use",
|
"terms": "Terms of Use",
|
||||||
|
|||||||
@ -100,7 +100,8 @@
|
|||||||
"invalid_max_fallback_attempt_limit": "La limite des tentatives de secours doit être un nombre positif.",
|
"invalid_max_fallback_attempt_limit": "La limite des tentatives de secours doit être un nombre positif.",
|
||||||
"regex_is_invalid": "Le regex est invalide",
|
"regex_is_invalid": "Le regex est invalide",
|
||||||
"attachment_not_found": "La pièce jointe est introuvable",
|
"attachment_not_found": "La pièce jointe est introuvable",
|
||||||
"title_length_exceeded": "Vous avez atteint la longueur maximale"
|
"title_length_exceeded": "Vous avez atteint la longueur maximale",
|
||||||
|
"no_label_found": "Aucune étiquette trouvée"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"terms": "Conditions d'utilisation",
|
"terms": "Conditions d'utilisation",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user