mirror of https://github.com/FreeTubeApp/FreeTube
update isNullOrEmpty imports
This commit is contained in:
parent
863c1d2572
commit
aa7f21c97f
|
@ -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'
|
||||
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue