use "pin" instead of "favorite"
This commit is contained in:
parent
530bc8591e
commit
98b472d925
|
@ -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>
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue