adding a button to the detail to explicitly save changes.

This commit is contained in:
zadam
2020-07-23 00:19:50 +02:00
parent 2c9565b4b3
commit aa4a645670
4 changed files with 21 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ const TPL = `
padding: 0 0 0 5px !important;
margin: 0 !important;
color: var(--muted-text-color);
max-height: 200px;
max-height: 100px;
overflow: auto;
}
@@ -282,12 +282,12 @@ export default class AttributeEditorWidget extends TabAwareWidget {
}
async save() {
this.$saveAttributesButton.fadeOut();
const attributes = this.parseAttributes();
if (attributes) {
await server.put(`notes/${this.noteId}/attributes`, attributes, this.componentId);
this.$saveAttributesButton.fadeOut();
}
}