e621ng / e621ng

e621.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Replacements] Populate "Additional Source" field from GET parameters

ShadyGuy123 opened this issue · comments

The New Replacement page currently requires a post_id parameter for the replacement target, and allows an upload_url parameter for the replacement source (inherited from file_input.vue).
It'd be handy for extensions and userscripts to also allow an additional_source or similar parameter for the "Additional Source" field.

Details

It should be possible to do something like this

if(params.has('sources')) {
self.sources = params.get('sources').split(',');
}

just like the Upload page does, because it already uses the sources component, but that's as far as I've got since I'm not familiar with Ruby on Rails or Vue