mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat: Replace this.$refs.refName as Vue with InstanceType<T> (no-changelog) (#6050)
* refactor: use InstanceType<T> for all this.$refs types * refactor: update refs type in N8nSelect * fix: remove inputRef non-null assertion Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> * fix: remove non-null assertion --------- Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>
This commit is contained in:
@@ -113,6 +113,9 @@ import { useUIStore } from '@/stores/ui';
|
||||
import { useWorkflowsStore } from '@/stores/workflows';
|
||||
import { useNDVStore } from '@/stores/ndv';
|
||||
import { useNodeTypesStore } from '@/stores/nodeTypes';
|
||||
import { N8nInfoAccordion } from 'n8n-design-system';
|
||||
|
||||
type HelpRef = InstanceType<typeof N8nInfoAccordion>;
|
||||
|
||||
export default mixins(workflowHelpers, copyPaste, showMessage).extend({
|
||||
name: 'TriggerPanel',
|
||||
@@ -355,7 +358,7 @@ export default mixins(workflowHelpers, copyPaste, showMessage).extend({
|
||||
methods: {
|
||||
expandExecutionHelp() {
|
||||
if (this.$refs.help) {
|
||||
(this.$refs.help as Vue).$emit('expand');
|
||||
(this.$refs.help as HelpRef).$emit('expand');
|
||||
}
|
||||
},
|
||||
onLinkClick(e: MouseEvent) {
|
||||
|
||||
Reference in New Issue
Block a user