Feat/SW-3031 imagevault updates
* chore(SW-3031): Updated dependencies * feat(SW-3031): Added Imagevault Id to title and updated delete functionality Approved-by: Michael Zetterberg
This commit is contained in:
@@ -27,23 +27,20 @@ export default function ConfigForm({
|
||||
<FieldLabel version="v2" htmlFor="baseUrl">
|
||||
Base url for contentstack
|
||||
</FieldLabel>
|
||||
<Help text="Including the region. Used as publishing source on ImageVault" />
|
||||
<Help
|
||||
type="basic"
|
||||
text="Including the region. Used as publishing source on ImageVault"
|
||||
/>
|
||||
<TextInput
|
||||
id="baseUrl"
|
||||
name="baseUrl"
|
||||
type="url"
|
||||
value={finalValues.baseUrl}
|
||||
onChange={(evt: ChangeEvent<HTMLInputElement>) => {
|
||||
setFinalValues((prev) => ({
|
||||
...prev,
|
||||
baseUrl: evt.target.value,
|
||||
}))
|
||||
setFinalValues((prev) => ({ ...prev, baseUrl: evt.target.value }))
|
||||
|
||||
setInstallationData({
|
||||
configuration: {
|
||||
...finalValues,
|
||||
baseUrl: evt.target.value,
|
||||
},
|
||||
configuration: { ...finalValues, baseUrl: evt.target.value },
|
||||
serverConfiguration: {},
|
||||
})
|
||||
}}
|
||||
@@ -61,7 +58,10 @@ export default function ConfigForm({
|
||||
<FieldLabel version="v2" htmlFor="formatId">
|
||||
Format Id for images
|
||||
</FieldLabel>
|
||||
<Help text="Images are fetched with a certain format. This should be an id from ImageVault" />
|
||||
<Help
|
||||
type="basic"
|
||||
text="Images are fetched with a certain format. This should be an id from ImageVault"
|
||||
/>
|
||||
<TextInput
|
||||
id="formatId"
|
||||
name="formatId"
|
||||
@@ -73,16 +73,10 @@ export default function ConfigForm({
|
||||
version="v2"
|
||||
width="large"
|
||||
onChange={(evt: ChangeEvent<HTMLInputElement>) => {
|
||||
setFinalValues((prev) => ({
|
||||
...prev,
|
||||
formatId: evt.target.value,
|
||||
}))
|
||||
setFinalValues((prev) => ({ ...prev, formatId: evt.target.value }))
|
||||
|
||||
setInstallationData({
|
||||
configuration: {
|
||||
...finalValues,
|
||||
formatId: evt.target.value,
|
||||
},
|
||||
configuration: { ...finalValues, formatId: evt.target.value },
|
||||
serverConfiguration: {},
|
||||
})
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user