blob: d0a41dea112b8267ddf320e532a6f8a0f8907905 [file] [log] [blame]
Adrià Vilanova Martínez58cc67c2024-04-21 16:43:01 +02001import CssSelectorNodeWatcherScriptHandler from '../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
Adrià Vilanova Martíneze7f9be82024-05-31 22:37:04 +02002import { NodeMutationType } from '../../../common/nodeWatcher/NodeWatcherHandler';
Adrià Vilanova Martínez58cc67c2024-04-21 16:43:01 +02003import { AutoRefreshNodeWatcherDependencies } from '../scripts/nodeWatcher.script';
4
5/**
6 * Removes the snackbar when exiting thread list view.
7 */
8export default class AutoRefreshThreadListHideHandler extends CssSelectorNodeWatcherScriptHandler<AutoRefreshNodeWatcherDependencies> {
9 cssSelector = 'ec-thread-list';
10
11 readonly mutationTypesProcessed: NodeMutationType[] = [
12 NodeMutationType.RemovedNode,
13 ];
14
Adrià Vilanova Martíneze7f9be82024-05-31 22:37:04 +020015 onMutatedNode() {
Adrià Vilanova Martínez58cc67c2024-04-21 16:43:01 +020016 this.options.autoRefresh.hideUpdatePrompt();
17 }
18}