Remove the 'enablePinning' config property
This commit is contained in:
@@ -40,8 +40,6 @@ define(function() {
|
|||||||
config.notificationTimeout = 5000;
|
config.notificationTimeout = 5000;
|
||||||
config.disableUserlistNotifications = false;
|
config.disableUserlistNotifications = false;
|
||||||
|
|
||||||
config.enablePinning = true;
|
|
||||||
|
|
||||||
// Update the default colors available in the whiteboard application
|
// Update the default colors available in the whiteboard application
|
||||||
config.whiteboardPalette = [
|
config.whiteboardPalette = [
|
||||||
'#000000', // black
|
'#000000', // black
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ define([
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (common.isLoggedIn() && AppConfig.enablePinning) {
|
if (common.isLoggedIn()) {
|
||||||
// check the size of this file...
|
// check the size of this file...
|
||||||
var bytes = 0;
|
var bytes = 0;
|
||||||
NThen(function (waitFor) {
|
NThen(function (waitFor) {
|
||||||
|
|||||||
@@ -47,8 +47,6 @@ define([
|
|||||||
account: {},
|
account: {},
|
||||||
};
|
};
|
||||||
|
|
||||||
var PINNING_ENABLED = AppConfig.enablePinning;
|
|
||||||
|
|
||||||
// COMMON
|
// COMMON
|
||||||
common.getLanguage = function () {
|
common.getLanguage = function () {
|
||||||
return Messages._languageUsed;
|
return Messages._languageUsed;
|
||||||
@@ -1486,23 +1484,6 @@ define([
|
|||||||
console.log('onLogout: disconnect');
|
console.log('onLogout: disconnect');
|
||||||
postMessage("DISCONNECT");
|
postMessage("DISCONNECT");
|
||||||
});
|
});
|
||||||
|
|
||||||
if (PINNING_ENABLED && LocalStore.isLoggedIn()) {
|
|
||||||
console.log("logged in. pads will be pinned");
|
|
||||||
postMessage("INIT_RPC", null, waitFor(function (obj) {
|
|
||||||
console.log('RPC handshake complete');
|
|
||||||
if (obj.error) { return; }
|
|
||||||
localStorage[Constants.plan] = obj.plan;
|
|
||||||
}));
|
|
||||||
} else if (PINNING_ENABLED) {
|
|
||||||
console.log('not logged in. pads will not be pinned');
|
|
||||||
} else {
|
|
||||||
console.log('pinning disabled');
|
|
||||||
}
|
|
||||||
|
|
||||||
postMessage("INIT_ANON_RPC", null, waitFor(function () {
|
|
||||||
console.log('Anonymous RPC ready');
|
|
||||||
}));
|
|
||||||
}).nThen(function (waitFor) {
|
}).nThen(function (waitFor) {
|
||||||
if (sessionStorage.createReadme) {
|
if (sessionStorage.createReadme) {
|
||||||
var data = {
|
var data = {
|
||||||
|
|||||||
@@ -312,6 +312,7 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
Store.initRpc = function (clientId, data, cb) {
|
Store.initRpc = function (clientId, data, cb) {
|
||||||
|
if (!store.loggedIn) { return cb(); }
|
||||||
if (store.rpc) { return void cb(account); }
|
if (store.rpc) { return void cb(account); }
|
||||||
require(['/common/pinpad.js'], function (Pinpad) {
|
require(['/common/pinpad.js'], function (Pinpad) {
|
||||||
Pinpad.create(store.network, store.proxy, function (e, call) {
|
Pinpad.create(store.network, store.proxy, function (e, call) {
|
||||||
@@ -1670,6 +1671,7 @@ define([
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
Store.initAnonRpc(null, null, waitFor());
|
Store.initAnonRpc(null, null, waitFor());
|
||||||
|
Store.initRpc(null, null, waitFor());
|
||||||
}).nThen(function (waitFor) {
|
}).nThen(function (waitFor) {
|
||||||
postMessage(clientId, 'LOADING_DRIVE', {
|
postMessage(clientId, 'LOADING_DRIVE', {
|
||||||
state: 3
|
state: 3
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ define([
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add the folder
|
// Add the folder
|
||||||
if (!loggedIn || !AppConfig.enablePinning || config.testMode) {
|
if (!loggedIn || config.testMode) {
|
||||||
return void cb("EAUTH");
|
return void cb("EAUTH");
|
||||||
}
|
}
|
||||||
var id = Util.createRandomInteger();
|
var id = Util.createRandomInteger();
|
||||||
|
|||||||
@@ -834,7 +834,6 @@ MessengerUI, Messages) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var createLimit = function (toolbar) {
|
var createLimit = function (toolbar) {
|
||||||
if (!Config.enablePinning) { return; }
|
|
||||||
var $limitIcon = $('<span>', {'class': 'fa fa-exclamation-triangle'});
|
var $limitIcon = $('<span>', {'class': 'fa fa-exclamation-triangle'});
|
||||||
var $limit = toolbar.$userAdmin.find('.'+LIMIT_CLS).attr({
|
var $limit = toolbar.$userAdmin.find('.'+LIMIT_CLS).attr({
|
||||||
'title': Messages.pinLimitReached
|
'title': Messages.pinLimitReached
|
||||||
|
|||||||
Reference in New Issue
Block a user