Display the owner and expiration time of a pad in the properties modal
This commit is contained in:
@@ -362,6 +362,7 @@ define([
|
||||
if (!data.href) { return void cb({error:'NO_HREF'}); }
|
||||
var pad = makePad(data.href, data.title);
|
||||
if (data.owners) { pad.owners = data.owners; }
|
||||
if (data.expire) { pad.expire = data.expire; }
|
||||
store.userObject.pushData(pad, function (e, id) {
|
||||
if (e) { return void cb({error: "Error while adding a template:"+ e}); }
|
||||
var path = data.path || ['root'];
|
||||
@@ -527,6 +528,10 @@ define([
|
||||
if (Store.channel && Util.base64ToHex(h.channel) === Store.channel.wc.id) {
|
||||
owners = Store.channel.data.owners || undefined;
|
||||
}
|
||||
var expire;
|
||||
if (Store.channel && Util.base64ToHex(h.channel) === Store.channel.wc.id) {
|
||||
expire = +Store.channel.data.expire || undefined;
|
||||
}
|
||||
|
||||
var allPads = Util.find(store.proxy, ['drive', 'filesData']) || {};
|
||||
var isStronger;
|
||||
@@ -590,6 +595,7 @@ define([
|
||||
href: href,
|
||||
title: title,
|
||||
owners: owners,
|
||||
expire: expire,
|
||||
path: data.path || (store.data && store.data.initialPath)
|
||||
}, cb);
|
||||
return;
|
||||
|
||||
@@ -189,7 +189,6 @@ define([], function () {
|
||||
expire: expire,
|
||||
password: password
|
||||
};
|
||||
padData = cfg;
|
||||
var msg = ['GET_HISTORY', wc.id, cfg];
|
||||
// Add the validateKey if we are the channel creator and we have a validateKey
|
||||
if (hk) { network.sendto(hk, JSON.stringify(msg)); }
|
||||
|
||||
Reference in New Issue
Block a user