update isNullOrEmpty imports

This commit is contained in:
ChunkyProgrammer 2023-08-21 06:21:07 -07:00
parent 863c1d2572
commit aa7f21c97f
4 changed files with 10 additions and 3 deletions

View File

@ -9,8 +9,8 @@ import {
showToast,
toLocalePublicationString,
toDistractionFreeTitle,
isNullOrEmpty
} from '../../helpers/utils'
import { isNullOrEmpty } from '../../helpers/strings'
import { getPipedUrlInfo } from '../../helpers/api/piped'
import { deArrowData } from '../../helpers/sponsorblock'

View File

@ -1,6 +1,7 @@
import { defineComponent } from 'vue'
import FtShareButton from '../ft-share-button/ft-share-button.vue'
import { copyToClipboard, formatNumber, isNullOrEmpty, openExternalLink } from '../../helpers/utils'
import { copyToClipboard, formatNumber, openExternalLink } from '../../helpers/utils'
import { isNullOrEmpty } from '../../helpers/strings'
import { getPipedUrlInfo } from '../../helpers/api/piped'
export default defineComponent({

View File

@ -136,6 +136,9 @@ export default defineComponent({
},
playlistId: function (newVal, oldVal) {
if (oldVal !== newVal) {
if (this.backendPreference === 'piped') {
this.getPlaylistInformationPiped()
}
if (!process.env.IS_ELECTRON || this.backendPreference === 'invidious') {
this.getPlaylistInformationInvidious()
} else {
@ -149,6 +152,8 @@ export default defineComponent({
if (cachedPlaylist?.id === this.playlistId) {
this.loadCachedPlaylistInformation(cachedPlaylist)
} else if (this.backendPreference === 'piped') {
this.getPlaylistInformationPiped()
} else if (!process.env.IS_ELECTRON || this.backendPreference === 'invidious') {
this.getPlaylistInformationInvidious()
} else {

View File

@ -1,5 +1,6 @@
import store from '../../store/index'
import { isNullOrEmpty, toLocalePublicationString } from '../utils'
import { toLocalePublicationString } from '../utils'
import { isNullOrEmpty } from '../strings'
function getCurrentInstance() {
return store.getters.getCurrentPipedInstance