From d52acfa5d270fadc430e7ef5ec025a43e229196c Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 29 Nov 2019 17:02:02 +0100 Subject: [PATCH] Change initial tab in the file share modal --- www/common/common-ui-elements.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index b8ae705a2..eb8bb21a2 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1349,13 +1349,15 @@ define([ // Create modal var tabs = [{ - title: Messages.share_linkCategory, - icon: "fa fa-link", - content: frameLink - }, { title: Messages.share_contactCategory, icon: "fa fa-address-book", - content: frameContacts + content: frameContacts, + active: hasFriends, + }, { + title: Messages.share_linkCategory, + icon: "fa fa-link", + content: frameLink, + active: !hasFriends }, { title: Messages.share_embedCategory, icon: "fa fa-code",