Add the Studio 2 bench and restore saved prompt sections
This commit is contained in:
@@ -1074,6 +1074,11 @@ async function onMoveFocused(event: Event) {
|
||||
}
|
||||
|
||||
function openInStudio(entry: LibraryEntry) {
|
||||
const part = focusedParts.value.find(part => part.id === focusedPartId.value) || focusedParts.value[0]
|
||||
if ((part as any)?.studio2) {
|
||||
navigateTo({ path: '/studio-2', query: { [entry.kind === 'clip' ? 'clip' : 'still']: part!.id } })
|
||||
return
|
||||
}
|
||||
if (entry.kind === 'clip' && entry.group) {
|
||||
navigateTo({ path: '/', query: { clip: focusedPartId.value || entry.group.head.id } })
|
||||
return
|
||||
@@ -1088,6 +1093,11 @@ function openInStudio(entry: LibraryEntry) {
|
||||
}
|
||||
|
||||
function useInStudio(entry: LibraryEntry) {
|
||||
const part = focusedParts.value.find(part => part.id === focusedPartId.value) || focusedParts.value[0]
|
||||
if ((part as any)?.studio2) {
|
||||
navigateTo({ path: '/studio-2', query: { [entry.kind === 'clip' ? 'clip' : 'still']: part!.id, use: '1' } })
|
||||
return
|
||||
}
|
||||
if (entry.kind === 'clip' && entry.group) {
|
||||
navigateTo({ path: '/', query: { clip: focusedPartId.value || entry.group.head.id, use: '1' } })
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user