#101 lint changes

master
Agriya Dev5 2021-05-21 19:06:24 +05:30
parent 143192d7e3
commit da10092989
6 changed files with 31 additions and 23 deletions

View File

@ -167,7 +167,10 @@ export class SeCMenuDialog extends HTMLElement {
* @returns {any} observed * @returns {any} observed
*/ */
static get observedAttributes () { static get observedAttributes () {
return [ 'disableallmenu', 'enablemenuitems', 'disablemenuitems', 'tools-cut', 'tools-copy', 'tools-paste', 'tools-paste_in_place', 'tools-delete', 'tools-group', 'tools-ungroup', 'tools-move_front', 'tools-move_up', 'tools-move_down', 'tools-move_back' ]; return [ 'disableallmenu', 'enablemenuitems', 'disablemenuitems', 'tools-cut',
'tools-copy', 'tools-paste', 'tools-paste_in_place', 'tools-delete', 'tools-group',
'tools-ungroup', 'tools-move_front', 'tools-move_up', 'tools-move_down',
'tools-move_back' ];
} }
/** /**
* @function attributeChangedCallback * @function attributeChangedCallback

View File

@ -165,7 +165,11 @@ export class SeImgPropDialog extends HTMLElement {
* @returns {any} observed * @returns {any} observed
*/ */
static get observedAttributes () { static get observedAttributes () {
return [ 'title', 'width', 'height', 'save', 'dialog', 'embed', 'common-ok', 'common-cancel', 'config-image_props', 'config-doc_title', 'config-doc_dims', 'common-width', 'common-height', 'config-select_predefined', 'tools-fit-to-content', 'config-included_images', 'config-image_opt_embed', 'config-image_opt_ref' ]; return [ 'title', 'width', 'height', 'save', 'dialog', 'embed', 'common-ok',
'common-cancel', 'config-image_props', 'config-doc_title', 'config-doc_dims',
'common-width', 'common-height', 'config-select_predefined',
'tools-fit-to-content', 'config-included_images', 'config-image_opt_embed',
'config-image_opt_ref' ];
} }
/** /**
* @function attributeChangedCallback * @function attributeChangedCallback

View File

@ -121,6 +121,7 @@ export class SeSvgSourceEditorDialog extends HTMLElement {
*/ */
attributeChangedCallback (name, oldValue, newValue) { attributeChangedCallback (name, oldValue, newValue) {
if (oldValue === newValue) return; if (oldValue === newValue) return;
let node;
switch (name) { switch (name) {
case 'dialog': case 'dialog':
if (newValue === 'open') { if (newValue === 'open') {
@ -155,7 +156,7 @@ export class SeSvgSourceEditorDialog extends HTMLElement {
this.$cancelBtn.textContent = newValue; this.$cancelBtn.textContent = newValue;
break; break;
case 'notification-source_dialog_note': case 'notification-source_dialog_note':
const node = this._shadowRoot.querySelector('#copy_save_note'); node = this._shadowRoot.querySelector('#copy_save_note');
node.textContent = newValue; node.textContent = newValue;
break; break;
case 'config-done': case 'config-done':