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