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:
parent
b394d926fc
commit
5235efdb34
3 changed files with 588 additions and 592 deletions
|
@ -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')) {
|
||||
|
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue