You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alert('danger','Failed to get manga info. Error: '+data.error);
132
+
return;
133
+
}
118
134
119
-
this.data=data;
120
-
this.chapters=data.chapters;
121
-
})
122
-
.fail((jqXHR,status)=>{
123
-
alert('danger',`Failed to get manga info. Error: [${jqXHR.status}] ${jqXHR.statusText}`);
124
-
})
125
-
.always(()=>{
126
-
this.loading=false;
127
-
});
135
+
this.data=data;
136
+
this.chapters=data.chapters;
137
+
this.mangaAry=undefined;
138
+
})
139
+
.fail((jqXHR,status)=>{
140
+
alert('danger',`Failed to get manga info. Error: [${jqXHR.status}] ${jqXHR.statusText}`);
141
+
})
142
+
.always(()=>{
143
+
this.loading=false;
144
+
});
145
+
}else{
146
+
if(!this.searchAvailable){
147
+
alert('danger','Please make sure you are using a valid manga ID or manga URL from Mangadex. If you are trying to search MangaDex with a search term, please log in to MangaDex first by going to "Admin -> Connect to MangaDex".');
0 commit comments