SEMOSS / semoss-ui

Apache License 2.0
17 stars 3 forks source link

[TASK] Ctrl + S saves the app state #256

Closed johbaxter closed 3 weeks ago

johbaxter commented 1 month ago

Description

Add shortcut while in edit mode to save the app state.

Existing

N/A

Reference

N/A

Tasks

johbaxter commented 1 month ago

flow goes @SPRCoreDump

SPRCoreDump commented 1 month ago

flow goes @SPRCoreDump

  • ctrl +s **saves app
  • Notify user "You just saved your app, please ensure that the recent changes you made are accurate", does not have to be word for word, just notify user that they should check their work.

Is there a specific style of notification that's preferred here? I'm assuming a toast or something at the top right with an X is ok since I've seen it elsewhere in the app

johbaxter commented 1 month ago

@SPRCoreDump if you look in the code, we have a hook that handles this for us. All you have to do is call the fn off the hook