mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
dont block OS update for absent release notes
This commit is contained in:
committed by
Aiden McClelland
parent
0a9349bbc1
commit
1c2fd192df
@@ -80,16 +80,13 @@ export class WizardBaker {
|
|||||||
}): InstallWizardComponent['params'] {
|
}): InstallWizardComponent['params'] {
|
||||||
const { version, releaseNotes } = values
|
const { version, releaseNotes } = values
|
||||||
|
|
||||||
validate(version, exists, 'missing version')
|
|
||||||
validate(releaseNotes, exists, 'missing updateMessage')
|
|
||||||
|
|
||||||
const action = 'update'
|
const action = 'update'
|
||||||
const title = 'EmbassyOS'
|
const title = 'EmbassyOS'
|
||||||
const toolbar: TopbarParams = { action, title, version }
|
const toolbar: TopbarParams = { action, title, version }
|
||||||
|
|
||||||
const slideDefinitions: SlideDefinition[] = [
|
const slideDefinitions: SlideDefinition[] = [
|
||||||
{ selector: 'notes', cancelButton: { afterLoading: { text: 'Cancel' } }, nextButton: 'Update OS', params: {
|
{ selector: 'notes', cancelButton: { afterLoading: { text: 'Cancel' } }, nextButton: 'Update OS', params: {
|
||||||
action, notes: releaseNotes, title: 'Release Notes', titleColor: 'dark',
|
action, notes: releaseNotes || 'No release notes for this version', title: 'Release Notes', titleColor: 'dark',
|
||||||
}},
|
}},
|
||||||
{ selector: 'complete', finishButton: 'Dismiss', cancelButton: { whileLoading: { } }, params: {
|
{ selector: 'complete', finishButton: 'Dismiss', cancelButton: { whileLoading: { } }, params: {
|
||||||
action, verb: 'beginning update for', title, executeAction: () => this.updateService.updateEmbassyOS(version),
|
action, verb: 'beginning update for', title, executeAction: () => this.updateService.updateEmbassyOS(version),
|
||||||
|
|||||||
Reference in New Issue
Block a user