mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
settings: add "Learn more about Admin mode" link
This commit is contained in:
parent
60fa6071b9
commit
e794604cae
@ -35,13 +35,22 @@ export class CustomActionSettingsControl extends BaseSettingsControl {
|
||||
: null
|
||||
}
|
||||
{
|
||||
this.state.property_values.value ?
|
||||
<Text styles ={{
|
||||
root: {
|
||||
paddingBottom: '0.5em'
|
||||
}
|
||||
}}>{this.state.property_values.value}</Text>
|
||||
: <span/>
|
||||
<Stack horizontal tokens={{childrenGap:5}}>
|
||||
{
|
||||
this.state.property_values.value ?
|
||||
<Text styles ={{
|
||||
root: {
|
||||
paddingBottom: '0.5em'
|
||||
}
|
||||
}}>{this.state.property_values.value}</Text>
|
||||
: <span/>
|
||||
}
|
||||
{
|
||||
this.state.property_values.help_link ?
|
||||
this.state.property_values.help_link
|
||||
: <span/>
|
||||
}
|
||||
</Stack>
|
||||
}
|
||||
<PrimaryButton
|
||||
styles={{
|
||||
|
@ -149,7 +149,17 @@ export class GeneralSettings extends React.Component <any, any> {
|
||||
setting={{
|
||||
display_name: '',
|
||||
value: 'Running as user. Do you wish to run as administrator instead?',
|
||||
button_text: 'Restart as administrator'
|
||||
button_text: 'Restart as administrator',
|
||||
help_link: <Link
|
||||
styles = {{
|
||||
root: {
|
||||
alignSelf:'center',
|
||||
paddingBottom: '0.5em'
|
||||
}
|
||||
}}
|
||||
href={"https://aka.ms/powertoysDetectedElevatedHelp"}
|
||||
target='_blank'
|
||||
>(Learn more about Admin mode)</Link>
|
||||
}}
|
||||
action_name={'restart_elevation'}
|
||||
action_callback={(action_name: any, value:any) => {
|
||||
|
2
src/settings/settings-html/dist/bundle.js
vendored
2
src/settings/settings-html/dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user