Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 8890cdf

Browse files
committed
fix Id CSV download bugs
1 parent ff86e20 commit 8890cdf

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

src/i18n/fr/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ export default {
183183
'Do not use sparse output tables: store all values': 'Ne pas utiliser de tableaux de résultats éparses : stocker toutes les valeurs',
184184
'Do not write model version into run log': "N'écrivez pas la version du modèle dans le journal d'exécution",
185185
'Download': 'Télécharger',
186-
'Download as ID CSV': 'Télécharger comme ID CSV',
187186
'Download completed': 'Téléchargement terminé',
188187
'Download error': 'Erreur de téléchargement',
189188
'Download Log': 'Télécharger le journal',
190189
'Download views of': 'Télécharger des vues de',
191190
'Download model data': 'Télécharger les données du modèle',
192191
'Download model views': 'Télécharger des vues de modèle',
192+
'Download with dimension items ID instead of code': "Télécharger avec l'ID des éléments de dimension au lieu du code",
193193
'Downloads': 'Téléchargements',
194194
'Downloads and Uploads': 'Téléchargements et chargements',
195195
'Downloads and uploads are not allowed': 'Les téléchargements et les chargements ne sont pas autorisés',

src/pages/ModelList.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ export default {
185185
'modelTreeExpandedKeys',
186186
'noAccDownload',
187187
'noMicrodataDownload',
188+
'idCsvDownload',
188189
'uiLang'
189190
])
190191
},
@@ -419,7 +420,7 @@ export default {
419420
NoAccumulatorsCsv: this.noAccDownload,
420421
NoMicrodata: this.noMicrodataDownload,
421422
Utf8BomIntoCsv: this.$q.platform.is.win,
422-
IdCsv: true
423+
IdCsv: !!this.idCsvDownload
423424
}
424425
const u = this.omsUrl + '/api/download/model/' + encodeURIComponent((dgst || ''))
425426
try {

src/pages/SessionSettings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
<q-checkbox v-model="isMicroDownload" :disable="!serverConfig.AllowDownload || fastDownload === 'yes'" :label="$t('Do full downloads, including microdata')" />
103103
</template>
104104
<br />
105-
<q-checkbox v-model="isIdCsvDownload" :disable="!serverConfig.AllowDownload" :label="$t('Download as ID CSV')" />
105+
<q-checkbox v-model="isIdCsvDownload" :disable="!serverConfig.AllowDownload" :label="$t('Download with dimension items ID instead of code')" />
106106
</td>
107107
</tr>
108108
<tr>

src/pages/UpDownList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<br />
6464
<q-checkbox v-model="isMicroDownload" :disable="fastDownload === 'yes' || !serverConfig.AllowMicrodata" :label="$t('Do full downloads, including microdata')" />
6565
<br />
66-
<q-checkbox v-model="isIdCsvDownload" :disable="!serverConfig.AllowDownload" :label="$t('Download as ID CSV')" />
66+
<q-checkbox v-model="isIdCsvDownload" :disable="!serverConfig.AllowDownload" :label="$t('Download with dimension items ID instead of code')" />
6767
</td>
6868
</tr>
6969

src/pages/run-list.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ export default {
134134
'uiLang',
135135
'runDigestSelected',
136136
'noAccDownload',
137-
'noMicrodataDownload'
137+
'noMicrodataDownload',
138+
'idCsvDownload'
138139
])
139140
},
140141

@@ -811,7 +812,7 @@ export default {
811812
NoAccumulatorsCsv: this.noAccDownload,
812813
NoMicrodata: this.noMicrodataDownload,
813814
Utf8BomIntoCsv: this.$q.platform.is.win,
814-
IdCsv: true
815+
IdCsv: !!this.idCsvDownload
815816
}
816817
const u = this.omsUrl +
817818
'/api/download/model/' + encodeURIComponent(this.digest) +

src/pages/workset-list.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export default {
121121
'runDigestSelected',
122122
'worksetNameSelected',
123123
'paramViewWorksetUpdatedCount',
124+
'idCsvDownload',
124125
'uiLang'
125126
])
126127
},
@@ -768,7 +769,7 @@ export default {
768769

769770
const opts = {
770771
Utf8BomIntoCsv: this.$q.platform.is.win,
771-
IdCsv: true
772+
IdCsv: !!this.idCsvDownload
772773
}
773774
const u = this.omsUrl +
774775
'/api/download/model/' + encodeURIComponent(this.digest) +

0 commit comments

Comments
 (0)