mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-12 04:33:10 +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
|
: null
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
this.state.property_values.value ?
|
<Stack horizontal tokens={{childrenGap:5}}>
|
||||||
<Text styles ={{
|
{
|
||||||
root: {
|
this.state.property_values.value ?
|
||||||
paddingBottom: '0.5em'
|
<Text styles ={{
|
||||||
}
|
root: {
|
||||||
}}>{this.state.property_values.value}</Text>
|
paddingBottom: '0.5em'
|
||||||
: <span/>
|
}
|
||||||
|
}}>{this.state.property_values.value}</Text>
|
||||||
|
: <span/>
|
||||||
|
}
|
||||||
|
{
|
||||||
|
this.state.property_values.help_link ?
|
||||||
|
this.state.property_values.help_link
|
||||||
|
: <span/>
|
||||||
|
}
|
||||||
|
</Stack>
|
||||||
}
|
}
|
||||||
<PrimaryButton
|
<PrimaryButton
|
||||||
styles={{
|
styles={{
|
||||||
|
@ -149,7 +149,17 @@ export class GeneralSettings extends React.Component <any, any> {
|
|||||||
setting={{
|
setting={{
|
||||||
display_name: '',
|
display_name: '',
|
||||||
value: 'Running as user. Do you wish to run as administrator instead?',
|
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_name={'restart_elevation'}
|
||||||
action_callback={(action_name: any, value:any) => {
|
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