added NoResultButton for search

This commit is contained in:
Myryk
2024-06-06 03:31:22 +02:00
parent d9b4d7033d
commit 7656113e59
2 changed files with 32 additions and 13 deletions
@@ -7,6 +7,15 @@ import { searchItem } from './searchitem.js';
import { execAndClose, couldBeMath, launchCustomCommand } from './miscfunctions.js';
import GeminiService from '../../services/gemini.js';
export const NoResultButton = () => searchItem({
materialIconName: 'Error',
name: "Search invalid",
content: "No results found!",
onActivate: () => {
App.closeWindow('overview');
},
});
export const DirectoryButton = ({ parentPath, name, type, icon }) => {
const actionText = Widget.Revealer({
revealChild: false,