Sha256: 61255b2a8dda4468e60b841693ce71ff0c39cfc1bf26c22e918291485020efd8
Contents?: true
Size: 769 Bytes
Versions: 11
Compression:
Stored size: 769 Bytes
Contents
import classic from "ember-classic-decorator"; import Controller, { inject as controller } from "@ember/controller"; import { action } from "@ember/object"; import { inject as service } from "@ember/service"; @classic export default class ShowController extends Controller { @service router; @controller("index") indexController; envPosition = 0; @action protect() { this.model.protect(); } @action unprotect() { this.model.unprotect(); } @action async solveMessage(msg) { await msg.solve(); this.router.transitionTo("index"); } @action async removeMessage(msg) { await msg.destroy(); this.router.transitionTo("index"); } @action envChanged(newPosition) { this.set("envPosition", newPosition); } }
Version data entries
11 entries across 11 versions & 1 rubygems