1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 08:09:43 +02:00

fixed audit log bugs

This commit is contained in:
Harvey Kandola 2017-03-12 15:37:56 +00:00
parent b394d926fc
commit 5235efdb34
3 changed files with 588 additions and 592 deletions

View file

@ -18,10 +18,6 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
viewMode: true,
editMode: false,
didReceiveAttrs(){
this.audit.record("viewed-document-section-" + this.get('model.page.contentType'));
},
didInsertElement() {
this.get('sectionService').refresh(this.get('document.id')).then((changes) => {
if (this.get('isDestroyed') || this.get('isDestroying')) {

View file

@ -240,7 +240,7 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
meta: meta
};
this.audit.record("added-section-" + page.contentType);
this.audit.record("added-section-" + section.get('contentType'));
const promise = this.addSection(model);
promise.then((id) => {

File diff suppressed because one or more lines are too long