blob: 4b1082d63f858be442a4212ea4364eaeec4a9ed1 [file] [log] [blame]
import CssSelectorNodeWatcherScriptHandler from '../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
import { NodeMutation, NodeMutationType } from '../../../common/nodeWatcher/NodeWatcherHandler';
import { AutoRefreshNodeWatcherDependencies } from '../scripts/nodeWatcher.script';
/**
* Removes the snackbar when exiting thread list view.
*/
export default class AutoRefreshThreadListHideHandler extends CssSelectorNodeWatcherScriptHandler<AutoRefreshNodeWatcherDependencies> {
cssSelector = 'ec-thread-list';
readonly mutationTypesProcessed: NodeMutationType[] = [
NodeMutationType.RemovedNode,
];
onMutatedNode(_: NodeMutation) {
this.options.autoRefresh.hideUpdatePrompt();
}
}