File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
resources/js/app/components Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -236,9 +236,6 @@ export default {
236
236
}
237
237
},
238
238
computed: {
239
- isNumber () {
240
- return this .renderAs === ' number' || (! this .renderAs && this .jsonSchema ? .oneOf ? .filter (one => one? .type === ' number' )? .length > 0 );
241
- },
242
239
title () {
243
240
if (this .renderAs === ' file' || (! this .renderAs && this .field === ' name' && this .abstractType === ' media' && this .isUploadable )) {
244
241
return this .t (' File' );
Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ export default {
110
110
msgFileUpload: t` File upload` ,
111
111
msgNoFileSelected: t` No file selected` ,
112
112
msgReplaceMedia: t` Replace media` ,
113
+ msgUploading: t` Uploading...` ,
114
+ msgUploadSucceeded: t` Upload succeeded` ,
113
115
response: {},
114
116
uploadProgressInfo: new Map (),
115
117
};
@@ -183,10 +185,10 @@ export default {
183
185
async upload() {
184
186
try {
185
187
this.loading = true;
186
- this.loadingMessage = 'Uploading...' ;
188
+ this.loadingMessage = this.msgUploading ;
187
189
const result = await this.doUpload();
188
190
this.$emit('success', result);
189
- this.loadingMessage = 'Upload succeeded' ;
191
+ this.loadingMessage = this.msgUploadSucceeded ;
190
192
} catch(e) {
191
193
this.$emit('error', e);
192
194
} finally {
You can’t perform that action at this time.
0 commit comments