fix: Revert auto-hide dropdown to fix popover regression and improve bash poller to handle strings better. (#1017)
This commit is contained in:
@@ -32,9 +32,6 @@ export default ({
|
|||||||
self.visible = false;
|
self.visible = false;
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
onFocusOutEvent={(self) => {
|
|
||||||
self.visible = false;
|
|
||||||
}}
|
|
||||||
onButtonPressEvent={(self, event) => {
|
onButtonPressEvent={(self, event) => {
|
||||||
const buttonClicked = event.get_button()[1];
|
const buttonClicked = event.get_button()[1];
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export class BashPoller<Value, Parameters extends unknown[]> {
|
|||||||
*/
|
*/
|
||||||
public execute = async (): Promise<void> => {
|
public execute = async (): Promise<void> => {
|
||||||
try {
|
try {
|
||||||
const res = await execAsync(`bash -c "${this._updateCommand}"`);
|
const res = await execAsync(['bash', '-c', this._updateCommand]);
|
||||||
this._targetVariable.set(await this._pollingFunction(res, ...this._params));
|
this._targetVariable.set(await this._pollingFunction(res, ...this._params));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Error executing bash command "${this._updateCommand}":`, error);
|
console.error(`Error executing bash command "${this._updateCommand}":`, error);
|
||||||
|
|||||||
Reference in New Issue
Block a user