+ + {{ item?._source?.content_ar }} -
- + >
{{ item?._source?.address?.vol_title }}، صفحه
@@ -202,7 +216,7 @@ function openModal(selectedItem) {
.reference {
height: 24px;
gap: 4px;
- padding-top: 0.25em; /*4px*/
+ padding-top: 0.25em; /*4px*/
padding-right: 0.5em; /*8px*/
padding-bottom: 0.25em; /*4px*/
padding-left: 0.5em; /*8px*/
@@ -231,7 +245,7 @@ function openModal(selectedItem) {
font-family: IRANSansX;
font-weight: 300;
font-size: 1rem;
- line-height: 1.5rem; /*24px*/
+ line-height: 1.5rem; /*24px*/
letter-spacing: 0%;
text-align: center;
}
@@ -248,7 +262,7 @@ function openModal(selectedItem) {
box-shadow: 0px 8px 20px 0px #0000001a;
background: #ffffff;
width: 100%;
- max-width: 720px; /*18px*/
+ max-width: 720px; /*18px*/
border-radius: 16px; /*18px*/
gap: 8px;
border-width: 0.3px;
diff --git a/pages/haditha/search/[id]/[slug]/index.vue b/pages/haditha/search/[id]/[slug]/index.vue
index 8a57b9a..f3c943b 100644
--- a/pages/haditha/search/[id]/[slug]/index.vue
+++ b/pages/haditha/search/[id]/[slug]/index.vue
@@ -174,7 +174,13 @@ const goToTheChatbot = () => {
};
const handleFavorite = async () => {
- addToFavorites(state.selectedItem);
+ if (state.selectedItem?._source?.tbookmark) {
+ await removeFromFavorites(state.selectedItem);
+ state.selectedItem._source.tbookmark = false;
+ } else {
+ await addToFavorites(state.selectedItem);
+ state.selectedItem._source.tbookmark = true;
+ }
// // add
// if (!state.selectedItem._source.tbookmark) {
@@ -220,8 +226,8 @@ const handlePagination = (prevNextIndicator: string) => {
let url = repoUrl() + hadithaApi.search.prevNextHadith;
url = url.replace("@index_key", "dhparag");
- url = url.replace("@vol_id", state.selectedItem._source.address.vol_id);
- url = url.replace("@parag_order", state.selectedItem._source.parag_order);
+ url = url.replace("@vol_id", state.selectedItem?._source?.address?.vol_id);
+ url = url.replace("@parag_order", state.selectedItem?._source?.parag_order);
url = url.replace("@step", prevNextIndicator);
httpService
@@ -305,14 +311,19 @@ const handlePagination = (prevNextIndicator: string) => {
{{
state.selectedItem?._source?.meta?.hadith_masoum ??
- "بدون عنوان"
+ state.selectedItem?._source?.meta?.hadith_sanad
}}
بدون متن عربی
++ {{ state.selectedItem?._source?.content_ar ?? "" }} +
{{ state.selectedItem?._source?.meta?.hadith_masoum ?? - "بدون عنوان" + state.selectedItem?._source?.meta?.hadith_sanad }}:
{
-