mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
ui: default uninstall warning message
This commit is contained in:
committed by
Aiden McClelland
parent
73d40c71ad
commit
c4eef4db17
@@ -114,9 +114,9 @@ export class WizardBaker {
|
|||||||
const toolbar: TopbarParams = { action, title, version }
|
const toolbar: TopbarParams = { action, title, version }
|
||||||
|
|
||||||
const slideDefinitions: SlideDefinition[] = [
|
const slideDefinitions: SlideDefinition[] = [
|
||||||
uninstallWarning ? { selector: 'developer-notes', cancelButton: { afterLoading: { text: 'Cancel' } }, nextButton: 'Next', params: {
|
{ selector: 'developer-notes', cancelButton: { afterLoading: { text: 'Cancel' } }, nextButton: 'Continue', params: {
|
||||||
action, developerNotes: uninstallWarning,
|
action, developerNotes: uninstallWarning || defaultUninstallationWarning(title) },
|
||||||
}} : undefined,
|
},
|
||||||
{ selector: 'dependents', cancelButton: { whileLoading: { }, afterLoading: { text: 'Cancel' } }, nextButton: 'Uninstall', params: {
|
{ selector: 'dependents', cancelButton: { whileLoading: { }, afterLoading: { text: 'Cancel' } }, nextButton: 'Uninstall', params: {
|
||||||
action, verb: 'uninstalling', title, fetchBreakages: () => this.apiService.uninstallApp(id, true).then( ({ breakages }) => breakages ),
|
action, verb: 'uninstalling', title, fetchBreakages: () => this.apiService.uninstallApp(id, true).then( ({ breakages }) => breakages ),
|
||||||
}},
|
}},
|
||||||
@@ -172,3 +172,4 @@ function validate<T> (t: T, test: (t: T) => Boolean, desc: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const exists = t => !!t
|
const exists = t => !!t
|
||||||
|
const defaultUninstallationWarning = serviceName => `Uninstalling ${ serviceName } will result in the deletion of its data.`
|
||||||
Reference in New Issue
Block a user