|
|
@ -16,6 +16,15 @@ define([
|
|
|
|
Messages, nThen, Pages) {
|
|
|
|
Messages, nThen, Pages) {
|
|
|
|
var Share = {};
|
|
|
|
var Share = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var embeddableApps = [
|
|
|
|
|
|
|
|
'code',
|
|
|
|
|
|
|
|
'form',
|
|
|
|
|
|
|
|
'kanban',
|
|
|
|
|
|
|
|
'pad',
|
|
|
|
|
|
|
|
'slide',
|
|
|
|
|
|
|
|
'whiteboard',
|
|
|
|
|
|
|
|
].map(app => `/${app}/`);
|
|
|
|
|
|
|
|
|
|
|
|
var createShareWithFriends = function (config, onShare, linkGetter) {
|
|
|
|
var createShareWithFriends = function (config, onShare, linkGetter) {
|
|
|
|
var common = config.common;
|
|
|
|
var common = config.common;
|
|
|
|
var sframeChan = common.getSframeChannel();
|
|
|
|
var sframeChan = common.getSframeChannel();
|
|
|
@ -772,7 +781,7 @@ define([
|
|
|
|
icon: "fa fa-link",
|
|
|
|
icon: "fa fa-link",
|
|
|
|
active: !contactsActive,
|
|
|
|
active: !contactsActive,
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
if (!opts.static && !ApiConfig.disableEmbedding) {
|
|
|
|
if (!opts.static && !ApiConfig.disableEmbedding && embeddableApps.includes(pathname)) {
|
|
|
|
tabs.push({
|
|
|
|
tabs.push({
|
|
|
|
getTab: getEmbedTab,
|
|
|
|
getTab: getEmbedTab,
|
|
|
|
title: Messages.share_embedCategory,
|
|
|
|
title: Messages.share_embedCategory,
|
|
|
|