LPS-39541 Showing if initial publication is in progress

@ipeychev this PR contains some minor JS changes. Can you please check on them?

I've basically copied patterns and they are little small. The second commit (https://github.com/matethurzo/liferay-portal/commit/5f9929a209936831cacc87a03d693e82d12a8a73) contains them.

thanks,

Máté