mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-11 16:59:09 +00:00
Merge "Revert "Allow gadget/browser extension extensibility of empty search state""
This commit is contained in:
commit
c0332419e4
|
@ -27,7 +27,6 @@
|
|||
@blur="onBlur"
|
||||
>
|
||||
<template #default>
|
||||
<div ref="emptyState">empty</div>
|
||||
<input
|
||||
type="hidden"
|
||||
name="title"
|
||||
|
@ -186,7 +185,6 @@ module.exports = exports = defineComponent( {
|
|||
restClient.fetchByTitle( query, 10, this.showDescription ),
|
||||
true
|
||||
);
|
||||
this.$refs.emptyState.innerHTML = '';
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -272,9 +270,6 @@ module.exports = exports = defineComponent( {
|
|||
this.disableTransitions = false;
|
||||
} );
|
||||
}
|
||||
if ( this.$refs.emptyState ) {
|
||||
mw.hook( 'search.display' ).fire( this.$refs.emptyState );
|
||||
}
|
||||
}
|
||||
} );
|
||||
</script>
|
||||
|
|
|
@ -18,9 +18,6 @@ exports[`App renders a typeahead search component 1`] = `
|
|||
show-thumbnail="true"
|
||||
title="search"
|
||||
>
|
||||
<div>
|
||||
empty
|
||||
</div>
|
||||
<input
|
||||
name="title"
|
||||
type="hidden"
|
||||
|
|
Loading…
Reference in a new issue