use "pin" instead of "favorite"

This commit is contained in:
Son Nguyen Kim 2021-09-19 19:50:50 +02:00
parent 530bc8591e
commit 98b472d925
2 changed files with 5 additions and 5 deletions

View File

@ -264,7 +264,7 @@
{% if alias.pinned %}
<span class="fa fa-heart" data-toggle="tooltip"
title="This alias added to favorite"></span>
title="This alias is pinned"></span>
{% endif %}
{% if alias.hibp_breaches | length > 0 %}
@ -475,8 +475,8 @@
{% endif %}
<div class="small-text mt-2" data-toogle="tooltip"
title="Add alias to favorite so it's always pinned on top">
Add to favorite
title="it's always pinned on top">
Pin this alias
<i class="fe fe-help-circle"></i>
</div>
<div>

View File

@ -139,9 +139,9 @@ $(".pin-alias").change(async function () {
if (res.ok) {
if (newValue) {
toastr.success(`${alias} is added to favorite`);
toastr.success(`${alias} is pinned`);
} else {
toastr.info(`${alias} is removed from favorite`);
toastr.info(`${alias} is unpinned`);
}
} else {
toastr.error("Sorry for the inconvenience! Could you refresh the page & retry please?", "Unknown Error");