#Configuration of Host Control Shutdown menu item

13 messages · Page 1 of 1 (latest)

balmy glade
#

Hello, I'm new to Mainsail and don't really know where to find the code that manages the menu items when you press the power button in the top right corner of the web interface. I kind of assumed it's part of Mainsail, but to add gpio controls to this menu list, I've added definitions in the moonraker.conf file.

In any case, I would like to know if it's possible to modify the behavior of the Host Control->Shutdown button in this menu. Specifically, is it possible to add a confirmation popup or even remove the item altogether?

Thanks,
Skrunch.

silent etherBOT
#

Ahoi @balmy glade!
Welcome to the Mainsail support-forum!
There is a problem with the tags you selected for this post. Please fix them to fit your question.
For further information on tags please check the readme: #readme message

To change the tags of this post:

  1. Open the ... menu on the top right corner of this post.
  2. Find Edit tags
  3. Select the checkbox of the correct tags.

Usually you just need to select one tag!
If you still have no idea which one to choose, feel free to ask here.

Note: This is an automated message

Thanks for your cooperation!

#

Ahoi @balmy glade!
It looks like you did not provide all the necessary information we need to help you.
Please upload your logfiles and a detailed description of your problem.
For further information see: https://docs.mainsail.xyz/faq/getting-help/discord#provide-information
Note: We only accept .log and .txt files as log files.
This is an automated message

We are glad to help and chat with you on our Community Discord, but if you need help and want the best support possible you should, follow a few simple rules:

balmy glade
#

This question doesn't require any logfiles and the description is as detailed as I can make it.

tired shadow
#

Feature requests should go on Github

fallen python
#

I don't quite the goal of your adjustments. What do you want to do?

tired shadow
#

Specifically, is it possible to add a confirmation popup or even remove the item altogether?

#

I think OP doesn't want to accidentally hit that button

fallen python
#

but to add gpio controls to this menu list
thats what i meant

fallen lily
#

but when you tell us the exact idea you have, maybe we can point you to the correct place.

balmy glade
#

I would like to modify the source code. Thanks for the link, I'll have a look at that.