Sha256: 3d6313f94ef55be51a885d66036b1d73c4675792d515af2e4ba2e30e3665d1b1

Contents?: true

Size: 1.09 KB

Versions: 94

Compression:

Stored size: 1.09 KB

Contents

export default {
  state: {
    path: null,
    sentiment: null,
    source: null,
    configId: null,
    steps: [],
    feedbackId: null,
    email: null
  },
  setPath: function(path) {
    this.state.path = path;
  },
  setSentiment: function(sentiment) {
    this.state.sentiment = sentiment;
  },
  setSource: function(source) {
    this.state.source = source;
  },
  setConfigId: function(id) {
    this.state.configId = id;
  },
  setFeedbackId: function(id) {
    this.state.feedbackId = id;
  },
  setEmail: function(email) {
    this.state.email = email;
  },
  addStep: function(step) {
    this.state.steps.push(step);
  },
  toParam: function() {
    return {
      feedback_config_id: this.state.configId,
      path: this.state.path,
      sentiment: this.state.sentiment,
      source: this.state.source,
      steps: this.state.steps,
      id: this.state.feedbackId,
      email: this.state.email
    }
  },
  clearState: function() {
    this.state.path = null;
    this.state.sentiment = null;
    this.state.steps = [];
    this.state.feedbackId = null;
    this.state.email = null;
  }
};

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
station-0.5.16 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.15 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.14 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.13 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.12 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.11 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.10 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.9 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.8 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.7 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.6 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.5 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.4 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.3 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.2 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.1 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.5.0 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.4.9 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.4.8 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js
station-0.4.7 lib/nexmo_developer/app/webpacker/javascript/components/feedback/store.js