← Back to team overview

ubuntu-touch-coreapps-reviewers team mailing list archive

[Merge] lp:~popey/ubuntu-filemanager-app/fix-1447721 into lp:ubuntu-filemanager-app

 

Alan Pope  has proposed merging lp:~popey/ubuntu-filemanager-app/fix-1447721 into lp:ubuntu-filemanager-app.

Commit message:
Simple patch which adds support for opening vcard/vcf files via content hub. Contacts app is a target, others (like Dekko) may follow later.

Requested reviews:
  Ubuntu File Manager Developers (ubuntu-filemanager-dev)

For more details, see:
https://code.launchpad.net/~popey/ubuntu-filemanager-app/fix-1447721/+merge/279429
-- 
Your team Ubuntu File Manager Developers is requested to review the proposed merge of lp:~popey/ubuntu-filemanager-app/fix-1447721 into lp:ubuntu-filemanager-app.
=== modified file 'src/app/qml/content-hub/contenttyperesolver.js'
--- src/app/qml/content-hub/contenttyperesolver.js	2015-08-29 00:54:25 +0000
+++ src/app/qml/content-hub/contenttyperesolver.js	2015-12-03 12:11:38 +0000
@@ -55,6 +55,9 @@
     'ppt': CH.ContentType.Documents,
     'pptx': CH.ContentType.Documents,
     'pdf': CH.ContentType.Documents,
+
+    'vcf': CH.ContentType.Contacts,
+    'vcard': CH.ContentType.Contacts,
 }
 
 function resolveContentType(fileUrl) {
@@ -78,4 +81,3 @@
     var lastDotIndex = fileUrl.lastIndexOf('.')
     return lastDotIndex > -1 ? fileUrl.substring(lastDotIndex + 1) : ''
 }
-


References