Hide the tags button for anonymous users

This commit is contained in:
yflory 2017-12-19 11:58:45 +01:00
parent 4cf3e0edf8
commit cfc9ce33d6
4 changed files with 13 additions and 8 deletions

View File

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

View File

@ -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;
}

View File

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

View File

@ -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);