mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
22 lines
483 B
JavaScript
22 lines
483 B
JavaScript
|
|
import utils from "../services/utils.js";
|
||
|
|
import QuickSearchWidget from "./quick_search.js";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Similar to the {@link QuickSearchWidget} but meant to be included inside the launcher bar.
|
||
|
|
*
|
||
|
|
* <p>
|
||
|
|
* Adds specific tweaks such as:
|
||
|
|
*
|
||
|
|
* - Hiding the widget on mobile.
|
||
|
|
*/
|
||
|
|
export default class QuickSearchLauncherWidget extends QuickSearchWidget {
|
||
|
|
|
||
|
|
isEnabled() {
|
||
|
|
if (utils.isMobile()) {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
return super.isEnabled();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|