mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Feature: Support Multiple URLs in Studios (#6223)
* Backend support for studio URLs * FrontEnd addition * Support URLs in BulkStudioUpdate * Update tagger modal for URLs --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -287,11 +287,6 @@ const StudioPage: React.FC<IProps> = ({ studio, tabKey }) => {
|
||||
|
||||
const showAllCounts = uiConfig?.showChildStudioContent;
|
||||
|
||||
// make array of url so that it doesn't re-render on every change
|
||||
const urls = useMemo(() => {
|
||||
return studio?.url ? [studio.url] : [];
|
||||
}, [studio.url]);
|
||||
|
||||
const studioImage = useMemo(() => {
|
||||
const existingPath = studio.image_path;
|
||||
if (isEditing) {
|
||||
@@ -471,7 +466,7 @@ const StudioPage: React.FC<IProps> = ({ studio, tabKey }) => {
|
||||
favorite={studio.favorite}
|
||||
onToggleFavorite={(v) => setFavorite(v)}
|
||||
/>
|
||||
<ExternalLinkButtons urls={urls} />
|
||||
<ExternalLinkButtons urls={studio.urls} />
|
||||
</span>
|
||||
</DetailTitle>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user