Enable "Add tag" action even if no tags are defined yet (#4793)
This commit is contained in:
parent
5105a2649d
commit
a5c9c026e2
1 changed files with 4 additions and 2 deletions
|
@ -40,7 +40,8 @@ window.rcmail && rcmail.addEventListener('init', function() {
|
||||||
|
|
||||||
// display tags in message subject (message window)
|
// display tags in message subject (message window)
|
||||||
if (msg_view) {
|
if (msg_view) {
|
||||||
rcmail.enable_command('tag-add', 'tag-remove', 'tag-remove-all', rcmail.env.tags.length);
|
rcmail.enable_command('tag-add', true);
|
||||||
|
rcmail.enable_command('tag-remove', 'tag-remove-all', rcmail.env.tags.length);
|
||||||
message_tags(rcmail.env.message_tags);
|
message_tags(rcmail.env.message_tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -585,7 +586,8 @@ function search_request(url)
|
||||||
|
|
||||||
function message_list_select(list)
|
function message_list_select(list)
|
||||||
{
|
{
|
||||||
rcmail.enable_command('tag-add', 'tag-remove', 'tag-remove-all', rcmail.env.tags.length && list.selection.length);
|
rcmail.enable_command('tag-remove', 'tag-remove-all', rcmail.env.tags.length && list.selection.length);
|
||||||
|
rcmail.enable_command('tag-add', list.selection.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
// add tags to message subject on message list
|
// add tags to message subject on message list
|
||||||
|
|
Loading…
Add table
Reference in a new issue