mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-18 10:22:28 +08:00
Ran eslint fix on existing codebase
Had to do some manual fixing of the app.js file due to misplaced comments
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import {htmlToDom} from "../services/dom";
|
||||
import {Component} from "./component";
|
||||
import {htmlToDom} from '../services/dom';
|
||||
import {Component} from './component';
|
||||
|
||||
export class EntityPermissions extends Component {
|
||||
|
||||
@ -29,7 +29,7 @@ export class EntityPermissions extends Component {
|
||||
this.container.addEventListener('click', event => {
|
||||
const button = event.target.closest('button');
|
||||
if (button && button.dataset.roleId) {
|
||||
this.removeRowOnButtonClick(button)
|
||||
this.removeRowOnButtonClick(button);
|
||||
}
|
||||
});
|
||||
|
||||
@ -61,8 +61,8 @@ export class EntityPermissions extends Component {
|
||||
|
||||
removeRowOnButtonClick(button) {
|
||||
const row = button.closest('.item-list-row');
|
||||
const roleId = button.dataset.roleId;
|
||||
const roleName = button.dataset.roleName;
|
||||
const {roleId} = button.dataset;
|
||||
const {roleName} = button.dataset;
|
||||
|
||||
const option = document.createElement('option');
|
||||
option.value = roleId;
|
||||
@ -72,4 +72,4 @@ export class EntityPermissions extends Component {
|
||||
row.remove();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user