mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
add version-priority to installs
This commit is contained in:
committed by
Aiden McClelland
parent
64e38393df
commit
6789ff5a8c
@@ -32,7 +32,7 @@ export class AppListRecComponent {
|
||||
readonly installing$ = this.install$.pipe(
|
||||
switchMap(({ id, version }) =>
|
||||
// Mapping each installation to API request
|
||||
from(this.api.installPackage({ id, 'version-spec': `=${version}` })).pipe(
|
||||
from(this.api.installPackage({ id, 'version-spec': `>=${version}`, 'version-priority': 'min' })).pipe(
|
||||
// Mapping operation to true/false loading indication
|
||||
loading(this.errToast),
|
||||
),
|
||||
|
||||
@@ -179,6 +179,7 @@ export module RR {
|
||||
export type InstallPackageReq = WithExpire<{
|
||||
id: string
|
||||
'version-spec'?: string
|
||||
'version-priority'?: 'min' | 'max'
|
||||
}> // package.install
|
||||
export type InstallPackageRes = WithRevision<null>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user