blob: 9712c00a943e6dd8f35d701cfb816edb86681f24 [file] [log] [blame]
import CssSelectorNodeWatcherScriptHandler from '../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
import { NodeMutationType } from '../../../presentation/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() {
this.options.autoRefresh.hideUpdatePrompt();
}
}