Fix UI issue sin the file app

pull/1/head
yflory 5 years ago
parent f2ca9b5d65
commit 706ecc67f9

@ -582,10 +582,10 @@ MessengerUI, Messages) {
throw new Error("You must provide a `metadataMgr` to display the userlist"); throw new Error("You must provide a `metadataMgr` to display the userlist");
} }
var $shareBlock = $('<button>', { var $shareBlock = $(h('button.cp-toolar-share-button', [
'class': 'fa fa-shhare-alt cp-toolbar-share-button', h('i.fa.fa-shhare-alt'),
title: Messages.shareButton h('span.cp-button-name', Messages.shareButton)
}); ]));
Common.getSframeChannel().event('EV_SHARE_OPEN', { Common.getSframeChannel().event('EV_SHARE_OPEN', {
hidden: true, hidden: true,
file: true file: true

@ -86,7 +86,6 @@ define([
configTb.pageTitle = Messages.upload_title; configTb.pageTitle = Messages.upload_title;
} }
var toolbar = APP.toolbar = Toolbar.create(configTb); var toolbar = APP.toolbar = Toolbar.create(configTb);
toolbar.$rightside.html('');
if (!uploadMode) { if (!uploadMode) {
var hexFileName = secret.channel; var hexFileName = secret.channel;
@ -132,11 +131,12 @@ define([
pageTitle: title, pageTitle: title,
title: Title.getTitleConfig(), title: Title.getTitleConfig(),
}); });
toolbar.$rightside.append(common.createButton('forget', true)); toolbar.$drawer.append(common.createButton('forget', true));
toolbar.$rightside.append(common.createButton('properties', true)); toolbar.$drawer.append(common.createButton('properties', true));
if (common.isLoggedIn()) { if (common.isLoggedIn()) {
toolbar.$rightside.append(common.createButton('hashtag', true)); toolbar.$drawer.append(common.createButton('hashtag', true));
} }
toolbar.$file.show();
var displayFile = function (ev, sizeMb, CB) { var displayFile = function (ev, sizeMb, CB) {
var called_back; var called_back;
@ -159,7 +159,7 @@ define([
if (ev) { $dlButton.click(); } if (ev) { $dlButton.click(); }
if (!rightsideDisplayed) { if (!rightsideDisplayed) {
toolbar.$rightside toolbar.$drawer
.append(common.createButton('export', true, {}, function () { .append(common.createButton('export', true, {}, function () {
saveAs(decrypted.content, decrypted.metadata.name); saveAs(decrypted.content, decrypted.metadata.name);
})); }));

Loading…
Cancel
Save