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

Version Path
logster-2.20.0 client-app/app/controllers/show.js
logster-2.19.1 client-app/app/controllers/show.js
logster-2.19.0 client-app/app/controllers/show.js
logster-2.18.1 client-app/app/controllers/show.js
logster-2.18.0 client-app/app/controllers/show.js
logster-2.17.1 client-app/app/controllers/show.js
logster-2.17.0 client-app/app/controllers/show.js
logster-2.16.0 client-app/app/controllers/show.js
logster-2.15.0 client-app/app/controllers/show.js
logster-2.14.0 client-app/app/controllers/show.js
logster-2.13.1 client-app/app/controllers/show.js