admin: migrate overview data-target modals

This commit is contained in:
Jens Langhammer
2020-11-21 19:10:05 +01:00
parent 322ad0890a
commit 6681289a5a
8 changed files with 100 additions and 98 deletions

File diff suppressed because one or more lines are too long

View File

@ -7,11 +7,6 @@ import BullseyeStyle from "@patternfly/patternfly/layouts/Bullseye/bullseye.css"
import BackdropStyle from "@patternfly/patternfly/components/Backdrop/backdrop.css";
import { updateMessages } from "./Messages";
const PRIMARY_CLASS = "pf-m-primary";
const SUCCESS_CLASS = "pf-m-success";
const ERROR_CLASS = "pf-m-danger";
const PROGRESS_CLASSES = ["pf-m-progress", "pf-m-in-progress"];
@customElement("pb-modal-button")
export class ModalButton extends LitElement {

View File

@ -40,23 +40,6 @@ document.querySelectorAll(".pf-c-check__label").forEach((checkLabel) => {
});
});
// CodeMirror
// document.querySelectorAll(".codemirror").forEach((cm) => {
// let cmMode = 'xml';
// if ('data-cm-mode' in cm.attributes) {
// cmMode = cm.attributes['data-cm-mode'].value;
// }
// // https://github.com/codemirror/CodeMirror/issues/5092
// cm.removeAttribute("required");
// CodeMirror.fromTextArea(cm, {
// mode: cmMode,
// theme: 'monokai',
// lineNumbers: false,
// readOnly: cm.readOnly,
// autoRefresh: true,
// });
// });
// Automatic slug fields
const convertToSlug = (text) => {
return text