Hide the tags button for anonymous users

pull/1/head
yflory 7 years ago
parent 4cf3e0edf8
commit cfc9ce33d6

@ -527,8 +527,10 @@ define([
stateChange(STATE.FORGOTTEN); stateChange(STATE.FORGOTTEN);
})); }));
if (common.isLoggedIn()) {
var $tags = common.createButton('hashtag', true); var $tags = common.createButton('hashtag', true);
toolbar.$rightside.append($tags); toolbar.$rightside.append($tags);
}
createFilePicker(); createFilePicker();

@ -140,8 +140,10 @@ define([
})) }))
.append(common.createButton('forget', true, {}, function () { .append(common.createButton('forget', true, {}, function () {
// not sure what to do here // not sure what to do here
})) }));
.append(common.createButton('hashtag', true)); if (common.isLoggedIn()) {
toolbar.$rightside.append(common.createButton('hashtag', true));
}
rightsideDisplayed = true; rightsideDisplayed = true;
} }

@ -1164,10 +1164,10 @@ define([
}; };
common.openFilePicker(pickerCfg); common.openFilePicker(pickerCfg);
}).appendTo($rightside); }).appendTo($rightside);
}
var $tags = common.createButton('hashtag', true); var $tags = common.createButton('hashtag', true);
$rightside.append($tags); $rightside.append($tags);
}
}; };

@ -439,6 +439,8 @@ define([
APP.upload(name); APP.upload(name);
}); });
}).appendTo($rightside); }).appendTo($rightside);
common.createButton('hashtag', true).appendTo($rightside);
} }
var $forget = common.createButton('forget', true, {}, function (err) { var $forget = common.createButton('forget', true, {}, function (err) {
@ -446,7 +448,6 @@ define([
setEditable(false); setEditable(false);
}); });
$rightside.append($forget); $rightside.append($forget);
common.createButton('hashtag', true).appendTo($rightside);
if (!readOnly) { if (!readOnly) {
makeColorButton($rightside); makeColorButton($rightside);

Loading…
Cancel
Save