Skip to content

Comments

block: additional options for partial blocks#2316

Open
IlyasLebleu wants to merge 3 commits intowikimedia-gadgets:masterfrom
IlyasLebleu:pblocks
Open

block: additional options for partial blocks#2316
IlyasLebleu wants to merge 3 commits intowikimedia-gadgets:masterfrom
IlyasLebleu:pblocks

Conversation

@IlyasLebleu
Copy link
Contributor

Adds options to block users from creating pages, moving pages, thanking other users or uploading/overwriting pages when selecting a partial block. Tested on https://test.wikipedia.org/wiki/Special:Contributions/~2024-2520

ns.append({ type: 'option', label: name, value: number });
}
});
const partialblockoptions = [{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variable can be inlined

value: '1',
tooltip: 'Uploading files (including overwriting files)'
}];
const pbo = fieldBlockOptions.append({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be a descriptive variable name

},
{
checked: Twinkle.block.field_block_options.move,
label: 'Moving pages and files',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest removing or disabling these options for temp accounts as they can't move or upload or thank anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants