mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
chore: cleanup - show spinner on service list when transitioning
config add new list items to end and auto scroll remove js engine artifacts fix view button in notification toast
This commit is contained in:
@@ -304,6 +304,7 @@
|
||||
</ng-container>
|
||||
<!-- string or number -->
|
||||
<ion-item-group
|
||||
[id]="getElementId(entry.key, i)"
|
||||
*ngIf="spec.subtype === 'string' || spec.subtype === 'number'"
|
||||
>
|
||||
<ion-item color="dark">
|
||||
|
||||
@@ -141,23 +141,25 @@ export class FormObjectComponent {
|
||||
|
||||
if (!newItem) return
|
||||
|
||||
const index = arr.length
|
||||
|
||||
newItem.markAllAsTouched()
|
||||
arr.insert(0, newItem)
|
||||
arr.insert(index, newItem)
|
||||
if (['object', 'union'].includes(listSpec.subtype)) {
|
||||
const displayAs = (listSpec.spec as ListValueSpecOf<'object'>)[
|
||||
'display-as'
|
||||
]
|
||||
this.objectListDisplay[key].unshift({
|
||||
this.objectListDisplay[key].push({
|
||||
height: '0px',
|
||||
expanded: true,
|
||||
displayAs: displayAs ? Mustache.render(displayAs, newItem.value) : '',
|
||||
})
|
||||
|
||||
pauseFor(200).then(() => {
|
||||
this.objectListDisplay[key][0].height = this.getDocSize(key, 0)
|
||||
this.onExpand.emit()
|
||||
})
|
||||
}
|
||||
|
||||
pauseFor(400).then(() => {
|
||||
const element = document.getElementById(this.getElementId(key, index))
|
||||
element?.parentElement?.scrollIntoView({ behavior: 'smooth' })
|
||||
})
|
||||
}
|
||||
|
||||
toggleExpandObject(key: string) {
|
||||
|
||||
Reference in New Issue
Block a user