Eliminate xAIGen and LTX; AIGen is the only studio.
Drop the studio split, backup-to-xAIGen link, and LTX engine option. Show all LoRAs on AIGen and remove the Photos show/hide inputs toggle so slots stay visible. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-28
@@ -386,13 +386,6 @@
|
||||
:disabled="keepingInputBusy"
|
||||
@click="saveFocusedAsInput"
|
||||
>{{ keepingInputBusy ? 'Saving…' : 'Save as input' }}</button>
|
||||
<button
|
||||
v-if="focused.kind === 'still' && backupStudioEnabled"
|
||||
type="button"
|
||||
class="rounded-full border border-white/10 px-3 py-1.5 text-xs text-zinc-300 hover:text-white"
|
||||
:disabled="backupBusy"
|
||||
@click="sendFocusedToBackup"
|
||||
>{{ backupBusy ? 'Sending…' : 'Send to Backup' }}</button>
|
||||
<a
|
||||
v-if="downloadHref"
|
||||
:href="downloadHref"
|
||||
@@ -557,7 +550,6 @@ import {
|
||||
type LibraryTrack
|
||||
} from '~/utils/libraryBrowse'
|
||||
import { libraryAfterWipe, libraryMediaUrl, mergeLibraryRows } from '~/shared/studio2/viewer.mjs'
|
||||
import { isXaigenStudio } from '~/utils/videoModels'
|
||||
import { clipSettingsRows, stillSettingsRows, trackSettingsRows } from '~/utils/libraryGeneration'
|
||||
|
||||
const CARD_MIN = 156
|
||||
@@ -574,12 +566,7 @@ const filterOptions = [
|
||||
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
const instanceName = ref(String(runtimeConfig.public.instanceName || 'AIGen'))
|
||||
const backupStudioEnabled = computed(() => Boolean(runtimeConfig.public.backupStudioEnabled))
|
||||
const backupBusy = ref(false)
|
||||
const showPrivacyToggles = computed(() => isXaigenStudio({
|
||||
studio: runtimeConfig.public.studio,
|
||||
instanceName: runtimeConfig.public.instanceName || instanceName.value
|
||||
}))
|
||||
const showPrivacyToggles = computed(() => false)
|
||||
const folders = ref<LibraryFolder[]>([])
|
||||
const clips = ref<LibraryClip[]>([])
|
||||
const stills = ref<LibraryStill[]>([])
|
||||
@@ -1194,20 +1181,6 @@ function useInStudio(entry: LibraryEntry) {
|
||||
}
|
||||
}
|
||||
|
||||
async function sendFocusedToBackup() {
|
||||
const still = focusedStill.value
|
||||
if (!still || !backupStudioEnabled.value || backupBusy.value) return
|
||||
backupBusy.value = true
|
||||
try {
|
||||
await $fetch(`/api/library/stills/${still.id}/backup`, { method: 'POST' })
|
||||
toast('Sent to Backup')
|
||||
} catch (error: any) {
|
||||
toast(error?.data?.statusMessage || 'Could not send that still to Backup')
|
||||
} finally {
|
||||
backupBusy.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function saveFocusedAsInput() {
|
||||
const still = focusedStill.value
|
||||
if (!still || keepingInputBusy.value) return
|
||||
|
||||
Reference in New Issue
Block a user