|
7 | 7 | <NcDialog |
8 | 8 | :open="show" |
9 | 9 | size="normal" |
10 | | - :name="t('settings', 'Advanced deploy options')" |
| 10 | + :name="t('appstore', 'Advanced deploy options')" |
11 | 11 | @update:open="$emit('update:show', $event)"> |
12 | 12 | <div class="modal__content"> |
13 | 13 | <p class="deploy-option__hint"> |
14 | | - {{ configuredDeployOptions === null ? t('settings', 'Edit ExApp deploy options before installation') : t('settings', 'Configured ExApp deploy options. Can be set only during installation') }}. |
| 14 | + {{ configuredDeployOptions === null ? t('appstore', 'Edit ExApp deploy options before installation') : t('appstore', 'Configured ExApp deploy options. Can be set only during installation') }}. |
15 | 15 | <a v-if="deployOptionsDocsUrl" :href="deployOptionsDocsUrl"> |
16 | | - {{ t('settings', 'Learn more') }} |
| 16 | + {{ t('appstore', 'Learn more') }} |
17 | 17 | </a> |
18 | 18 | </p> |
19 | 19 | <h3 v-if="environmentVariables.length > 0 || (configuredDeployOptions !== null && configuredDeployOptions.environment_variables.length > 0)"> |
20 | | - {{ t('settings', 'Environment variables') }} |
| 20 | + {{ t('appstore', 'Environment variables') }} |
21 | 21 | </h3> |
22 | 22 | <template v-if="configuredDeployOptions === null"> |
23 | 23 | <div |
|
34 | 34 | v-else-if="Object.keys(configuredDeployOptions).length > 0" |
35 | 35 | class="envs"> |
36 | 36 | <legend class="deploy-option__hint"> |
37 | | - {{ t('settings', 'ExApp container environment variables') }} |
| 37 | + {{ t('appstore', 'ExApp container environment variables') }} |
38 | 38 | </legend> |
39 | 39 | <NcTextField |
40 | 40 | v-for="(value, key) in configuredDeployOptions.environment_variables" |
|
46 | 46 | </fieldset> |
47 | 47 | <template v-else> |
48 | 48 | <p class="deploy-option__hint"> |
49 | | - {{ t('settings', 'No environment variables defined') }} |
| 49 | + {{ t('appstore', 'No environment variables defined') }} |
50 | 50 | </p> |
51 | 51 | </template> |
52 | 52 |
|
53 | | - <h3>{{ t('settings', 'Mounts') }}</h3> |
| 53 | + <h3>{{ t('appstore', 'Mounts') }}</h3> |
54 | 54 | <template v-if="configuredDeployOptions === null"> |
55 | 55 | <p class="deploy-option__hint"> |
56 | | - {{ t('settings', 'Define host folder mounts to bind to the ExApp container') }} |
| 56 | + {{ t('appstore', 'Define host folder mounts to bind to the ExApp container') }} |
57 | 57 | </p> |
58 | | - <NcNoteCard type="info" :text="t('settings', 'Must exist on the Deploy daemon host prior to installing the ExApp')" /> |
| 58 | + <NcNoteCard type="info" :text="t('appstore', 'Must exist on the Deploy daemon host prior to installing the ExApp')" /> |
59 | 59 | <div |
60 | 60 | v-for="mount in deployOptions.mounts" |
61 | 61 | :key="mount.hostPath" |
62 | 62 | class="deploy-option" |
63 | 63 | style="display: flex; align-items: center; justify-content: space-between; flex-direction: row;"> |
64 | | - <NcTextField v-model="mount.hostPath" :label="t('settings', 'Host path')" /> |
65 | | - <NcTextField v-model="mount.containerPath" :label="t('settings', 'Container path')" /> |
| 64 | + <NcTextField v-model="mount.hostPath" :label="t('appstore', 'Host path')" /> |
| 65 | + <NcTextField v-model="mount.containerPath" :label="t('appstore', 'Container path')" /> |
66 | 66 | <NcCheckboxRadioSwitch v-model="mount.readonly"> |
67 | | - {{ t('settings', 'Read-only') }} |
| 67 | + {{ t('appstore', 'Read-only') }} |
68 | 68 | </NcCheckboxRadioSwitch> |
69 | 69 | <NcButton |
70 | | - :aria-label="t('settings', 'Remove mount')" |
| 70 | + :aria-label="t('appstore', 'Remove mount')" |
71 | 71 | style="margin-top: 6px;" |
72 | 72 | @click="removeMount(mount)"> |
73 | 73 | <template #icon> |
|
77 | 77 | </div> |
78 | 78 | <div v-if="addingMount" class="deploy-option"> |
79 | 79 | <h4> |
80 | | - {{ t('settings', 'New mount') }} |
| 80 | + {{ t('appstore', 'New mount') }} |
81 | 81 | </h4> |
82 | 82 | <div style="display: flex; align-items: center; justify-content: space-between; flex-direction: row;"> |
83 | 83 | <NcTextField |
84 | 84 | ref="newMountHostPath" |
85 | 85 | v-model="newMountPoint.hostPath" |
86 | | - :label="t('settings', 'Host path')" |
87 | | - :aria-label="t('settings', 'Enter path to host folder')" /> |
| 86 | + :label="t('appstore', 'Host path')" |
| 87 | + :aria-label="t('appstore', 'Enter path to host folder')" /> |
88 | 88 | <NcTextField |
89 | 89 | v-model="newMountPoint.containerPath" |
90 | | - :label="t('settings', 'Container path')" |
91 | | - :aria-label="t('settings', 'Enter path to container folder')" /> |
| 90 | + :label="t('appstore', 'Container path')" |
| 91 | + :aria-label="t('appstore', 'Enter path to container folder')" /> |
92 | 92 | <NcCheckboxRadioSwitch |
93 | 93 | v-model="newMountPoint.readonly" |
94 | | - :aria-label="t('settings', 'Toggle read-only mode')"> |
95 | | - {{ t('settings', 'Read-only') }} |
| 94 | + :aria-label="t('appstore', 'Toggle read-only mode')"> |
| 95 | + {{ t('appstore', 'Read-only') }} |
96 | 96 | </NcCheckboxRadioSwitch> |
97 | 97 | </div> |
98 | 98 | <div style="display: flex; align-items: center; margin-top: 4px;"> |
99 | 99 | <NcButton |
100 | | - :aria-label="t('settings', 'Confirm adding new mount')" |
| 100 | + :aria-label="t('appstore', 'Confirm adding new mount')" |
101 | 101 | @click="addMountPoint"> |
102 | 102 | <template #icon> |
103 | 103 | <NcIconSvgWrapper :path="mdiCheck" /> |
104 | 104 | </template> |
105 | | - {{ t('settings', 'Confirm') }} |
| 105 | + {{ t('appstore', 'Confirm') }} |
106 | 106 | </NcButton> |
107 | 107 | <NcButton |
108 | | - :aria-label="t('settings', 'Cancel adding mount')" |
| 108 | + :aria-label="t('appstore', 'Cancel adding mount')" |
109 | 109 | style="margin-left: 4px;" |
110 | 110 | @click="cancelAddMountPoint"> |
111 | 111 | <template #icon> |
112 | 112 | <NcIconSvgWrapper :path="mdiClose" /> |
113 | 113 | </template> |
114 | | - {{ t('settings', 'Cancel') }} |
| 114 | + {{ t('appstore', 'Cancel') }} |
115 | 115 | </NcButton> |
116 | 116 | </div> |
117 | 117 | </div> |
118 | 118 | <NcButton |
119 | 119 | v-if="!addingMount" |
120 | | - :aria-label="t('settings', 'Add mount')" |
| 120 | + :aria-label="t('appstore', 'Add mount')" |
121 | 121 | style="margin-top: 5px;" |
122 | 122 | @click="startAddingMount"> |
123 | 123 | <template #icon> |
124 | 124 | <NcIconSvgWrapper :path="mdiPlus" /> |
125 | 125 | </template> |
126 | | - {{ t('settings', 'Add mount') }} |
| 126 | + {{ t('appstore', 'Add mount') }} |
127 | 127 | </NcButton> |
128 | 128 | </template> |
129 | 129 | <template v-else-if="configuredDeployOptions.mounts.length > 0"> |
130 | 130 | <p class="deploy-option__hint"> |
131 | | - {{ t('settings', 'ExApp container mounts') }} |
| 131 | + {{ t('appstore', 'ExApp container mounts') }} |
132 | 132 | </p> |
133 | 133 | <div |
134 | 134 | v-for="mount in configuredDeployOptions.mounts" |
135 | 135 | :key="mount.hostPath" |
136 | 136 | class="deploy-option" |
137 | 137 | style="display: flex; align-items: center; justify-content: space-between; flex-direction: row;"> |
138 | | - <NcTextField v-model="mount.hostPath" :label="t('settings', 'Host path')" readonly /> |
139 | | - <NcTextField v-model="mount.containerPath" :label="t('settings', 'Container path')" readonly /> |
| 138 | + <NcTextField v-model="mount.hostPath" :label="t('appstore', 'Host path')" readonly /> |
| 139 | + <NcTextField v-model="mount.containerPath" :label="t('appstore', 'Container path')" readonly /> |
140 | 140 | <NcCheckboxRadioSwitch v-model="mount.readonly" disabled> |
141 | | - {{ t('settings', 'Read-only') }} |
| 141 | + {{ t('appstore', 'Read-only') }} |
142 | 142 | </NcCheckboxRadioSwitch> |
143 | 143 | </div> |
144 | 144 | </template> |
145 | 145 | <p v-else class="deploy-option__hint"> |
146 | | - {{ t('settings', 'No mounts defined') }} |
| 146 | + {{ t('appstore', 'No mounts defined') }} |
147 | 147 | </p> |
148 | 148 | </div> |
149 | 149 |
|
@@ -244,7 +244,7 @@ export default { |
244 | 244 |
|
245 | 245 | addingPortBinding: false, |
246 | 246 | configuredDeployOptions: null, |
247 | | - deployOptionsDocsUrl: loadState('settings', 'deployOptionsDocsUrl', null), |
| 247 | + deployOptionsDocsUrl: loadState('appstore', 'deployOptionsDocsUrl', null), |
248 | 248 | } |
249 | 249 | }, |
250 | 250 |
|
|
0 commit comments