()
| 85 | } |
| 86 | |
| 87 | override async didApply(): Promise<ActionApplyResult> { |
| 88 | const show = this.engine.state('images').filter((item: string) => { |
| 89 | const [show, type, asset,] = item.split(' '); |
| 90 | return asset !== this.asset; |
| 91 | }); |
| 92 | |
| 93 | this.engine.state({ images: show }); |
| 94 | return { advance: true }; |
| 95 | } |
| 96 | |
| 97 | override async willRevert(): Promise<void> { |
| 98 | if (this.engine.history('image').length === 0) { |