From 0c58783a6cc7dfb8f776b9ffbf701387d2417194 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 22 Jul 2018 11:59:56 +0300 Subject: [PATCH] add buttons to restore, clone, move a section --- _locales/en/messages.json | 12 ++++++ edit.html | 14 ++++++- edit/edit.css | 40 ++++++++++++++++---- edit/edit.js | 2 +- edit/lint.js | 5 +-- edit/sections.js | 80 ++++++++++++++++++++++++++++++++------- edit/util.js | 5 +++ 7 files changed, 130 insertions(+), 28 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 992a0016..ab45b821 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -205,6 +205,14 @@ "configOnChangeTooltip": { "message": "Autosave and apply changes automatically" }, + "genericAdd": { + "message": "Add", + "description": "Used in various places for an action that adds something" + }, + "genericClone": { + "message": "Clone", + "description": "Used in various places for an action that clones something" + }, "genericError": { "message": "Error", "description": "Used in various places to indicate some error occurred." @@ -840,6 +848,10 @@ "message": "Remove section", "description": "Label for the button to remove a section" }, + "sectionRestore": { + "message": "Restore removed section", + "description": "Label for the button to restore a removed section" + }, "shortcuts": { "message": "Shortcuts", "description": "Go to shortcut configuration" diff --git a/edit.html b/edit.html index fd7124b7..d99c00c9 100644 --- a/edit.html +++ b/edit.html @@ -121,7 +121,7 @@ + + +