Skip to content

Commit

Permalink
Merge branch 'fix/package-manager-html-rendering-types' of github.com…
Browse files Browse the repository at this point in the history
…:nrkno/sofie-core into fix/pm-types-html-template

# Conflicts:
#	meteor/lib/collections/ExpectedPackages.ts
#	packages/shared-lib/src/package-manager/package.ts
  • Loading branch information
nytamin committed Aug 23, 2024
2 parents fb1014a + 45c25b9 commit d90c220
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
30 changes: 30 additions & 0 deletions meteor/client/ui/Settings/Studio/PackageManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,36 @@ export const StudioPackageManagerSettings = withTranslation()(
{t('Base url to the resource (example: http://myserver/folder)')}
</span>
</label>
<label className="field">
<LabelActual label={t('Is Immutable')} />
<EditAttribute
modifiedClassName="bghl"
attribute={`packageContainers.${containerId}.container.accessors.${accessorId}.isImmutable`}
obj={this.props.studio}
type="checkbox"
collection={Studios}
className="input text-input input-l"
></EditAttribute>
<span className="text-s dimmed field-hint">
{t('When set, resources are considered immutable, ie they will not change')}
</span>
</label>
<label className="field">
<LabelActual label={t('Supports HEAD requests')} />
<EditAttribute
modifiedClassName="bghl"
attribute={`packageContainers.${containerId}.container.accessors.${accessorId}.supportHEAD`}
obj={this.props.studio}
type="checkbox"
collection={Studios}
className="input text-input input-l"
></EditAttribute>
<span className="text-s dimmed field-hint">
{t(
'Set to true if the HTTP server supports HEAD requests. (otherwise GET requests will be used to check availability)'
)}
</span>
</label>

<label className="field">
<LabelActual label={t('Network Id')} />
Expand Down
4 changes: 3 additions & 1 deletion meteor/client/ui/Status/package-status/PackageStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export const PackageStatus: React.FC<{
return p2.content.path || unprotectString(props.package._id)
} else {
assertNever(p2)
return unprotectString(props.package._id)

const anyContent = (p2 as any).content
return anyContent.path || anyContent.filePath || anyContent.title || unprotectString(props.package._id)
}
}, [props.package])

Expand Down

0 comments on commit d90c220

Please sign in to comment.