mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-11 11:49:50 +08:00
feat: unify provider scheduling workspace
This commit is contained in:
@@ -1228,6 +1228,15 @@ function applyProviderSnapshot(updated: ProviderWithEndpointsSummary): void {
|
||||
provider.value = updated
|
||||
}
|
||||
|
||||
// A provider opened from scheduling may not belong to the resource page's loaded slice.
|
||||
// Apply edits supplied by the parent even when the drawer loaded its own initial snapshot.
|
||||
watch(() => props.initialProvider, (updated) => {
|
||||
if (!props.open || !updated || updated.id !== props.providerId) return
|
||||
providerLoadRequestId += 1
|
||||
applyProviderSnapshot(updated)
|
||||
loading.value = false
|
||||
})
|
||||
|
||||
function getProviderKeysPageSize(providerType?: string | null): number {
|
||||
return (providerType || '').trim().toLowerCase() === 'custom'
|
||||
? CUSTOM_PROVIDER_KEYS_PAGE_SIZE
|
||||
|
||||
Reference in New Issue
Block a user