},
pageHeading(): string {
- return this.currentView?.name ?? this.t('files', 'Files')
+ return this.currentView?.name ?? t('files', 'Files')
},
/**
},
shareButtonLabel() {
if (!this.shareAttributes) {
- return this.t('files', 'Share')
+ return t('files', 'Share')
}
if (this.shareButtonType === Type.SHARE_TYPE_LINK) {
- return this.t('files', 'Shared by link')
+ return t('files', 'Shared by link')
}
- return this.t('files', 'Shared')
+ return t('files', 'Shared')
},
shareButtonType(): Type | null {
if (!this.shareAttributes) {
gridViewButtonLabel() {
return this.userConfig.grid_view
- ? this.t('files', 'Switch to list view')
- : this.t('files', 'Switch to grid view')
+ ? t('files', 'Switch to list view')
+ : t('files', 'Switch to grid view')
},
/**
},
cantUploadLabel() {
if (this.isQuotaExceeded) {
- return this.t('files', 'Your have used your space quota and cannot upload files anymore')
+ return t('files', 'Your have used your space quota and cannot upload files anymore')
}
- return this.t('files', 'You don’t have permission to upload or create files here')
+ return t('files', 'You don’t have permission to upload or create files here')
},
/**
// Check known status codes
if (status === 507) {
- showError(this.t('files', 'Not enough free space'))
+ showError(t('files', 'Not enough free space'))
return
} else if (status === 404 || status === 409) {
- showError(this.t('files', 'Target folder does not exist any more'))
+ showError(t('files', 'Target folder does not exist any more'))
return
} else if (status === 403) {
- showError(this.t('files', 'Operation is blocked by access control'))
+ showError(t('files', 'Operation is blocked by access control'))
return
}
// Finally, check the status code if we have one
if (status !== 0) {
- showError(this.t('files', 'Error during upload, status code {status}', { status }))
+ showError(t('files', 'Error during upload, status code {status}', { status }))
return
}
- showError(this.t('files', 'Unknown error during upload'))
+ showError(t('files', 'Unknown error during upload'))
},
/**