mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
#382 Better feedback on supporter key entry
This commit is contained in:
parent
d2077f43d4
commit
1fbfb1d548
3 changed files with 18 additions and 3 deletions
|
@ -20,10 +20,17 @@
|
|||
} else {
|
||||
$('.supporterOnly', page).hide();
|
||||
}
|
||||
if ((info.LegacyKey || info.SupporterKey) && !info.IsMBSupporter) {
|
||||
$('#txtSupporterKey', page).addClass("invalidEntry");
|
||||
$('.notSupporter', page).show();
|
||||
} else {
|
||||
$('#txtSupporterKey', page).removeClass("invalidEntry");
|
||||
$('.notSupporter', page).hide();
|
||||
}
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
updateSupporterKey: function () {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
@ -40,8 +47,7 @@
|
|||
ApiClient.updatePluginSecurityInfo(info).done(function () {
|
||||
Dashboard.resetPluginSecurityInfo();
|
||||
Dashboard.hideLoadingMsg();
|
||||
SupporterPage.load();
|
||||
|
||||
SupporterKeyPage.load();
|
||||
});
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue