Reset Layout button #433

Closed
opened 2026-04-20 08:46:10 +00:00 by a24vinla · 2 comments
Collaborator

We should have a button that remove all active cards now that we save between refreshes. The function should be defined in the saveGrid.js file. This is mostly an effort to ease development.

Something like this will work fine:

function resetLayout() {
		global.localStorage.removeItem('layout');
		setLayout([]);
		setCounter(0);
	}
We should have a button that remove all active cards now that we save between refreshes. The function should be defined in the saveGrid.js file. This is mostly an effort to ease development. Something like this will work fine: ``` function resetLayout() { global.localStorage.removeItem('layout'); setLayout([]); setCounter(0); } ```
Author
Collaborator

On thing I forgot to add is that a confirmation box (modal) should probably be shown before the user can reset the layout to prevent accidentally deleting the whole layout, especially since we have not way of undoing it currently.

On thing I forgot to add is that a confirmation box (modal) should probably be shown before the user can reset the layout to prevent accidentally deleting the whole layout, especially since we have not way of undoing it currently.
Collaborator

This has been implemented. Andras/BoundlessFlowCampus2K@71f22401b7 I close this issue.

This has been implemented. https://git.webug.se/Andras/BoundlessFlowCampus2K/commit/71f22401b78c6fa72e214a9d5700da06f7245845 I close this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K#433
No description provided.