1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Hide QuickConnect options when not available

This commit is contained in:
Bill Thornton 2020-11-30 17:13:05 -05:00
parent 4a516337b5
commit 05b0a2518e
4 changed files with 24 additions and 3 deletions

View file

@ -263,6 +263,17 @@ import toast from '../../../components/toast/toast';
}
const apiClient = getApiClient();
apiClient.getQuickConnect('Status')
.then(status => {
if (status !== 'Unavailable') {
view.querySelector('.btnQuick').classList.remove('hide');
}
})
.catch(() => {
console.debug('Failed to get QuickConnect status');
});
apiClient.getPublicUsers().then(function (users) {
if (users.length) {
showVisualForm();