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);
}));
if (common.isLoggedIn()) {
var $tags = common.createButton('hashtag', true);
toolbar.$rightside.append($tags);
}
createFilePicker();

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

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

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

Loading…
Cancel
Save