gitlab-org--gitlab-foss/app/assets/javascripts/issue_show/stores/index.js
Phil Hughes 598b05dfff Fixed a bunch of errors with invalid prop
Use v-model on textrea
2017-05-10 17:28:36 +01:00

25 lines
575 B
JavaScript

export default class Store {
constructor({
titleHtml,
descriptionHtml,
descriptionText,
}) {
this.state = {
titleHtml,
titleText: '',
descriptionHtml,
descriptionText,
taskStatus: '',
updatedAt: '',
};
}
updateState(data) {
this.state.titleHtml = data.title;
this.state.titleText = data.title_text;
this.state.descriptionHtml = data.description;
this.state.descriptionText = data.description_text;
this.state.taskStatus = data.task_status;
this.state.updatedAt = data.updated_at;
}
}