How can we remove the 'move to trash' button

Please stop I just ask this
I know how can we remove that

addButton(new ToolbarItem(WIDGET_NAME_DELETE, MESSAGES.deleteProjectButton(),

        new MoveToTrashAction()));

this is that one code t remove

:slightly_smiling_face:

2 Likes

If you remove this then users are not able to switch projects

2 Likes

Please check ones again I edited my post

just comment those lines only.....

1 Like

Hello, all I hve removed move to trash button from top tollbar and it works it remove that button
But when I remove move to trash button from project toolbar I got error not in ant command I got error in localhost
There is two move to trash button I have removed one kindly tell me how can we remove another.
I have removed from drop-down of projects

Remove Line 58 and 59.

Also, I had a small question: How are you going to delete projects if you don't have the Move to Trash button?

Edit: Corrected my spelling.

2 Likes

I have added a delete icon where project show that can move project into trash

1 Like

Same I have done but I got error


I am getting this error

Does it load after that?

Click on "ok" and post bug message

No, It is not loading after that after that a blank page came

When I click on ok It redirect me to a new tab in which I got these things

Ooops! We tripped on a Bug!
Please help us by telling us what you were doing at the time this happend. We have already included some technical data with this report. If you do not submit this report, nothing will be reported to us. If you do submit a report, your comments along with the technical data will be sent to us.

Thank you for your help in making MIT App Inventor better!

Technical Data to be Submitted:

notes = Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36
foundIn = v185a-125-gce385622
faultData = com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read properties of undefined (reading 'element_0')
projectId = -1

this is a javascript error which says that the element does not exists element_0 so it cant read its properties

I don't know but is it really a JS error I don't think so :thinking:

Yup 100% sure

But in appinventor js is nor used much and I do not edit any js file

1 Like

:point_down:

It may be a JS error but only in the browser, because AI2 sources don't use JS much except only for the blocklyeditor folder which used for the Blockly blocks