Removed redundant admin settings for page deletion. It will now always ask for confirming deletion (fixes #1970)

This commit is contained in:
Djamil Legato
2020-11-20 10:15:01 -08:00
parent 296ded003a
commit 13b4d6257b
5 changed files with 544 additions and 29 deletions

View File

@@ -23,9 +23,6 @@ pages:
show_modular: true
session:
timeout: 1800
warnings:
delete_page: true
secure_delete: false
edit_mode: normal
frontend_preview_target: inline
show_github_msg: true

View File

@@ -231,30 +231,6 @@ form:
type: number
min: 1
warnings.delete_page:
type: toggle
label: Warn on page delete
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
help: Ask the user confirmation when deleting a page
warnings.secure_delete:
type: toggle
label: Secure Delete
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
help: Shows the user a field to enter the word DELETE and enable the confirm delete button.
hide_page_types:
type: select
size: large

View File

@@ -43,7 +43,6 @@ PLUGIN_ADMIN:
EXPERT: "Expert"
EXPAND_ALL: "Expand All"
COLLAPSE_ALL: "Collapse All"
SECURE_DELETE_DESC: "Type DELETE and confirm"
ERROR: "Error"
CLOSE: "Close"
CANCEL: "Cancel"

View File

@@ -43,7 +43,6 @@ PLUGIN_ADMIN:
EXPERT: "Esperto"
EXPAND_ALL: "Expandir Tudo"
COLLAPSE_ALL: "Recolher Tudo"
SECURE_DELETE_DESC: "Digite DELETE e confirme"
ERROR: "Erro"
CLOSE: "Fechar"
CANCEL: "Cancelar"

File diff suppressed because one or more lines are too long