File tree Expand file tree Collapse file tree 2 files changed +4
-20
lines changed
src/renderer/components/experimental-settings Expand file tree Collapse file tree 2 files changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -19,23 +19,7 @@ export default Vue.extend({
19
19
replaceHttpCacheLoading : true ,
20
20
replaceHttpCache : false ,
21
21
replaceHttpCachePath : '' ,
22
- showRestartPrompt : false ,
23
- restartPromptValues : [
24
- 'yes' ,
25
- 'no'
26
- ]
27
- }
28
- } ,
29
- computed : {
30
- restartPromptMessage : function ( ) {
31
- return this . $t ( 'Settings["The app needs to restart for changes to take effect. Restart and apply change?"]' )
32
- } ,
33
-
34
- restartPromptNames : function ( ) {
35
- return [
36
- this . $t ( 'Yes' ) ,
37
- this . $t ( 'No' )
38
- ]
22
+ showRestartPrompt : false
39
23
}
40
24
} ,
41
25
mounted : function ( ) {
Original file line number Diff line number Diff line change 18
18
</ft-flex-box >
19
19
<ft-prompt
20
20
v-if =" showRestartPrompt"
21
- :label =" restartPromptMessage "
22
- :option-names =" restartPromptNames "
23
- :option-values =" restartPromptValues "
21
+ :label =" $t('Settings[\'The app needs to restart for changes to take effect. Restart and apply change?\']') "
22
+ :option-names =" [$t('Yes'), $t('No')] "
23
+ :option-values =" ['yes', 'no'] "
24
24
@click =" handleReplaceHttpCache"
25
25
/>
26
26
</ft-settings-section >
You can’t perform that action at this time.
0 commit comments