This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user