Skip to content

Commit

Permalink
gs-watch-gui: added a "reset" button in the DocZonesEdit to discard c…
Browse files Browse the repository at this point in the history
…hanges
  • Loading branch information
plassalas committed Jul 28, 2017
1 parent 98cca1c commit 75f7356
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -54,7 +54,7 @@ public class DocZonesEdit extends ModalEditor {
@Children({ FlexDiv.class, FlexDiv.class, FlexDiv.class })
@Children(path = FlexDiv.class, pos = 1, value = { FlexDiv.class, FlexDiv.class })
@Children(path = { FlexDiv.class, FlexDiv.class }, pos = { 1, 0 }, value = Image.class)
@Children(path = FlexDiv.class, pos = 2, value = { Validate.class, Cancel.class })
@Children(path = FlexDiv.class, pos = 2, value = { Validate.class, Reset.class, Cancel.class })
@Children(path = { FlexDiv.class, FlexDiv.class }, pos = { 1, 1 }, value = ZoneTextDiv.class)
@BindText(path = FlexDiv.class, pos = 0)
@StyleClass(path = FlexDiv.class, pos = 0, value = "doc-title")
Expand All @@ -73,6 +73,12 @@ public static class Validate extends HtmlButton {
// Persists the changes
}

@SetText("Reset")
@BindAction(value = RESET_SELECTION.class)
public static class Reset extends HtmlButton {
// Reset the changes
}

@SetText("Cancel")
@BindAction(value = { CANCEL.class, RESET_SELECTION.class })
public static class Cancel extends HtmlButton {
Expand Down

0 comments on commit 75f7356

Please sign in to comment.