Giter VIP home page Giter VIP logo

changeprompteditorarea's Introduction

Archived on 2020-02-16
I recently switched jobs away from SAP Commerce development

Change Prompt Editor Area

ko-fi

Prompt/Warn the user that he/she will lose unsaved changes when a new item loaded.

Demo

Installation

  1. Download the latest release

  2. Unpack the zip to hybris/bin/custom/

  3. Rename the folder (remove the version suffix from the name)

    mv changeprompteditorarea-* changeprompteditorarea
    
  4. Add changeprompteditorarea to your localextensions.xml

  5. Build

Notes

Getting the custom controller to work involves patching the OOTB backoffice widget config files via buildcallback.xml, because there is no easy way yet(!) to modify / replace existing widgets.

Known Limitations

  • "Save & Continue" does not show any validation warnings. If the dirty item has validation errors, the button is not available.

  • This extension only modifies the Backoffice Editor Area so it prompts the user when the currently displayed item is "dirty".

    This means that the list view will display a different selected item, as will the tree view if you change types, if the user cancels.

    To prevent those changes too, one would have to create some kind of logical gate between all involved widgets that block the propagation of the change if the item in the editor area is "dirty", and maybe even send additional socket events to reset widgets to their previous state...

changeprompteditorarea's People

Contributors

mpern avatar mpern-sap avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.