mirror of
https://github.com/simple-login/app.git
synced 2025-09-13 10:04:28 +08:00
use "pin" instead of "favorite"
This commit is contained in:
parent
530bc8591e
commit
98b472d925
2 changed files with 5 additions and 5 deletions
|
@ -264,7 +264,7 @@
|
||||||
|
|
||||||
{% if alias.pinned %}
|
{% if alias.pinned %}
|
||||||
<span class="fa fa-heart" data-toggle="tooltip"
|
<span class="fa fa-heart" data-toggle="tooltip"
|
||||||
title="This alias added to favorite"></span>
|
title="This alias is pinned"></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if alias.hibp_breaches | length > 0 %}
|
{% if alias.hibp_breaches | length > 0 %}
|
||||||
|
@ -475,8 +475,8 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="small-text mt-2" data-toogle="tooltip"
|
<div class="small-text mt-2" data-toogle="tooltip"
|
||||||
title="Add alias to favorite so it's always pinned on top">
|
title="it's always pinned on top">
|
||||||
Add to favorite
|
Pin this alias
|
||||||
<i class="fe fe-help-circle"></i>
|
<i class="fe fe-help-circle"></i>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -139,9 +139,9 @@ $(".pin-alias").change(async function () {
|
||||||
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
toastr.success(`${alias} is added to favorite`);
|
toastr.success(`${alias} is pinned`);
|
||||||
} else {
|
} else {
|
||||||
toastr.info(`${alias} is removed from favorite`);
|
toastr.info(`${alias} is unpinned`);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
toastr.error("Sorry for the inconvenience! Could you refresh the page & retry please?", "Unknown Error");
|
toastr.error("Sorry for the inconvenience! Could you refresh the page & retry please?", "Unknown Error");
|
||||||
|
|
Loading…
Add table
Reference in a new issue