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

Use toBoolean from string utils

This commit is contained in:
Bill Thornton 2022-04-12 12:18:12 -04:00
parent 92d249354c
commit 9de11b443d
5 changed files with 26 additions and 33 deletions

View file

@ -9,6 +9,7 @@ import '../elements/emby-button/emby-button';
import './listview/listview.scss';
import ServerConnections from './ServerConnections';
import alert from './alert';
import { toBoolean } from '../utils/string.ts';
/* eslint-disable indent */
@ -68,7 +69,7 @@ import alert from './alert';
limit = limit || parseInt(elem.getAttribute('data-activitylimit') || '7');
const minDate = new Date();
const hasUserId = elem.getAttribute('data-useractivity') !== 'false';
const hasUserId = toBoolean(elem.getAttribute('data-useractivity'), true);
// TODO: Use date-fns
if (hasUserId) {