Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/src/components/Checks/FileMimeType.vue')
-rw-r--r--apps/workflowengine/src/components/Checks/FileMimeType.vue28
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/workflowengine/src/components/Checks/FileMimeType.vue b/apps/workflowengine/src/components/Checks/FileMimeType.vue
index e91636f5130..a9577c097de 100644
--- a/apps/workflowengine/src/components/Checks/FileMimeType.vue
+++ b/apps/workflowengine/src/components/Checks/FileMimeType.vue
@@ -57,10 +57,10 @@ import valueMixin from './../../mixins/valueMixin'
export default {
name: 'FileMimeType',
components: {
- Multiselect
+ Multiselect,
},
mixins: [
- valueMixin
+ valueMixin,
],
data() {
return {
@@ -68,19 +68,19 @@ export default {
{
icon: 'icon-picture',
label: t('workflowengine', 'Images'),
- pattern: '/image\\/.*/'
+ pattern: '/image\\/.*/',
},
{
iconUrl: OC.imagePath('core', 'filetypes/x-office-document'),
label: t('workflowengine', 'Office documents'),
- pattern: '/(vnd\\.(ms-|openxmlformats-).*))$/'
+ pattern: '/(vnd\\.(ms-|openxmlformats-).*))$/',
},
{
iconUrl: OC.imagePath('core', 'filetypes/application-pdf'),
label: t('workflowengine', 'PDF documents'),
- pattern: 'application/pdf'
- }
- ]
+ pattern: 'application/pdf',
+ },
+ ],
}
},
computed: {
@@ -98,7 +98,7 @@ export default {
return {
icon: 'icon-settings-dark',
label: t('workflowengine', 'Custom mimetype'),
- pattern: ''
+ pattern: '',
}
},
currentValue() {
@@ -109,14 +109,14 @@ export default {
return {
icon: 'icon-settings-dark',
label: t('workflowengine', 'Custom mimetype'),
- pattern: this.newValue
+ pattern: this.newValue,
}
- }
+ },
},
methods: {
validateRegex(string) {
- var regexRegex = /^\/(.*)\/([gui]{0,3})$/
- var result = regexRegex.exec(string)
+ const regexRegex = /^\/(.*)\/([gui]{0,3})$/
+ const result = regexRegex.exec(string)
return result !== null
},
setValue(value) {
@@ -129,8 +129,8 @@ export default {
updateCustom(event) {
this.newValue = event.target.value
this.$emit('input', this.newValue)
- }
- }
+ },
+ },
}
</script>
<style scoped>