|
Lines 214-219
export default {
Link Here
|
| 214 |
callback: () => { |
214 |
callback: () => { |
| 215 |
saveOptionSelected.value = components.list; |
215 |
saveOptionSelected.value = components.list; |
| 216 |
if ( |
216 |
if ( |
|
|
217 |
props.instancedResource.stickyToolbar && |
| 217 |
props.instancedResource.stickyToolbar.includes( |
218 |
props.instancedResource.stickyToolbar.includes( |
| 218 |
"Form" |
219 |
"Form" |
| 219 |
) |
220 |
) |
|
Lines 229-234
export default {
Link Here
|
| 229 |
callback: () => { |
230 |
callback: () => { |
| 230 |
saveOptionSelected.value = components.show; |
231 |
saveOptionSelected.value = components.show; |
| 231 |
if ( |
232 |
if ( |
|
|
233 |
props.instancedResource.stickyToolbar && |
| 232 |
props.instancedResource.stickyToolbar.includes( |
234 |
props.instancedResource.stickyToolbar.includes( |
| 233 |
"Form" |
235 |
"Form" |
| 234 |
) |
236 |
) |
|
Lines 244-249
export default {
Link Here
|
| 244 |
callback: () => { |
246 |
callback: () => { |
| 245 |
saveOptionSelected.value = components.edit; |
247 |
saveOptionSelected.value = components.edit; |
| 246 |
if ( |
248 |
if ( |
|
|
249 |
props.instancedResource.stickyToolbar && |
| 247 |
props.instancedResource.stickyToolbar.includes( |
250 |
props.instancedResource.stickyToolbar.includes( |
| 248 |
"Form" |
251 |
"Form" |
| 249 |
) |
252 |
) |
|
Lines 254-259
export default {
Link Here
|
| 254 |
}, |
257 |
}, |
| 255 |
}; |
258 |
}; |
| 256 |
return Object.keys(buttonOptions).reduce((acc, key) => { |
259 |
return Object.keys(buttonOptions).reduce((acc, key) => { |
|
|
260 |
if (!components[key]) return acc; |
| 257 |
if (key === "show" && !navigationOnFormSave) return acc; |
261 |
if (key === "show" && !navigationOnFormSave) return acc; |
| 258 |
if (components[key] === navigationOnFormSave) return acc; |
262 |
if (components[key] === navigationOnFormSave) return acc; |
| 259 |
return [buttonOptions[key], ...acc]; |
263 |
return [buttonOptions[key], ...acc]; |
| 260 |
- |
|
|