This commit is contained in:
2020-06-25 18:02:25 +00:00
parent 916af463eb
commit cec553cb94

View File

@@ -18,6 +18,7 @@
multiple
chips
></v-file-input>
<v-btn color="primary" text @click="upload">{{ $ay.t("Upload") }}</v-btn>
</div>
</template>
@@ -59,13 +60,12 @@ export default {
fileData: JSON.stringify(fileData)
};
try {
let res = await window.$gz.api.uploadAttachment(at);
let res = await window.$gz.api.upload("translation/upload", at);
if (res.error) {
window.$gz.errorHandler.handleFormError(res.error);
} else {
vm.uploadFiles = [];
//probably call getdatafromapi here to refresh the list
//vm.updateDisplayList(res.data);
//TODO: trigger grid refresh
}
} catch (error) {
window.$gz.errorHandler.handleFormError(error);