Skip to content

Commit 61ba38e

Browse files
committed
Inline restart prompt label and option names and values
1 parent d0a70c4 commit 61ba38e

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

src/renderer/components/experimental-settings/experimental-settings.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,7 @@ export default Vue.extend({
1919
replaceHttpCacheLoading: true,
2020
replaceHttpCache: false,
2121
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
3923
}
4024
},
4125
mounted: function () {

src/renderer/components/experimental-settings/experimental-settings.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
</ft-flex-box>
1919
<ft-prompt
2020
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']"
2424
@click="handleReplaceHttpCache"
2525
/>
2626
</ft-settings-section>

0 commit comments

Comments
 (0)