()
| 593 | }); |
| 594 | }, |
| 595 | showMarkAsExpectedDialog() { |
| 596 | // Only initialize identity fields from user meta |
| 597 | let markedBy = this.userMeta?.myGitHubId || ''; |
| 598 | let lastVersion = this.userMeta?.lastEChartsVersion || ''; |
| 599 | |
| 600 | // Create our own custom dialog without using $prompt |
| 601 | const h = this.$createElement; |
| 602 | |
| 603 | this.$msgbox({ |
| 604 | title: 'Mark Difference as Expected', |
| 605 | message: h('div', { class: 'mark-expected-form' }, [ |
| 606 | h('div', { class: 'form-item' }, [ |
| 607 | h('div', { class: 'form-label' }, [ |
| 608 | 'Your GitHub ID: ', |
| 609 | h('span', { style: { color: '#F56C6C' } }, '*') |
| 610 | ]), |
| 611 | h('input', { |
| 612 | class: 'el-input__inner', |
| 613 | attrs: { |
| 614 | type: 'text', |
| 615 | placeholder: '' |
| 616 | }, |
| 617 | domProps: { |
| 618 | value: markedBy |
| 619 | }, |
| 620 | on: { |
| 621 | input: (e) => { |
| 622 | markedBy = e.target.value; |
| 623 | if (!this.userMeta) { |
| 624 | this.userMeta = { |
| 625 | myGitHubId: markedBy |
| 626 | }; |
| 627 | } |
| 628 | else { |
| 629 | this.userMeta.myGitHubId = markedBy; |
| 630 | } |
| 631 | } |
| 632 | } |
| 633 | }) |
| 634 | ]), |
| 635 | h('div', { class: 'form-item' }, [ |
| 636 | h('div', { class: 'form-label' }, [ |
| 637 | 'Last Version: ', |
| 638 | h('span', { style: { color: '#F56C6C' } }, '*') |
| 639 | ]), |
| 640 | h('input', { |
| 641 | class: 'el-input__inner', |
| 642 | attrs: { |
| 643 | type: 'text', |
| 644 | placeholder: '5.6.0' |
| 645 | }, |
| 646 | domProps: { |
| 647 | value: lastVersion |
| 648 | }, |
| 649 | on: { |
| 650 | input: (e) => { |
| 651 | lastVersion = e.target.value; |
| 652 | if (!this.userMeta) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…