@andrei-lopatenco You are correct, there is no Flags API at the moment... there never was one for the Write API plugin, and when it got ported into core, we didn't make one either.
But it sounds like a good idea.
Hi I want to be able to make custom changes to the ACP dashboard the some language changes as well, but I want them to stay after a git pull and upgrade is done.
Should I do this via a plugin or is there another way... oh and Im not sure on forking as it seems a bit much just for a couple of cosmetic changes.
@brownsmart you can use
git stash to save your changes and reapply after you do a git pull and upgrade.
Are these changes to core? I'm guessing that's what you're doing since you're talking about customizations to the ACP... If you're doing them on the master branch of the NodeBB repo you can stash like pichalite is suggesting and then pop the stash after you pull... but if they're useful maybe make some PR's and discuss with the core devs? That way you don't have to keep track of your stuff, merging, etc., but you'd have to make a fork
nice one!! never knew about stash!! but i love the simplicity so much! thanks!
Stashing works fine, and is fairly simple.
Keep in mind if you want to alter the ACP, you can do so via themes, even though the admin templates are found in
src/views/admin. Create an
admin folder in your theme's templates directory, and you can override the core templates as desired.
Nice, I didn't know the admin panel could be skinned as well