|
|
@@ -2626,16 +2626,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
data: function data() {
|
|
|
return {
|
|
|
notes: Object.values(this.initialnotes),
|
|
|
- noteWoid: this.woid
|
|
|
+ currentOrder: 'order-first'
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- userChanged: function userChanged(index) {
|
|
|
+ setOrder: function setOrder(index) {
|
|
|
if (index === 0) {
|
|
|
- return false;
|
|
|
- } else {
|
|
|
- return this.notes[index].noteuser !== this.notes[index - 1].noteuser;
|
|
|
+ this.currentOrder = 'order-first';
|
|
|
+ } else if (this.notes[index].noteuser !== this.notes[index - 1].noteuser) {
|
|
|
+ if (this.currentOrder === 'order-first') {
|
|
|
+ this.currentOrder = 'order-last';
|
|
|
+ } else {
|
|
|
+ this.currentOrder = 'order-first';
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+ return this.currentOrder;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -50091,7 +50097,7 @@ var render = function() {
|
|
|
attrs: {
|
|
|
"modal-id": "note" + _vm.noteType + "CreateModal",
|
|
|
"note-type": _vm.noteType,
|
|
|
- woid: _vm.noteWoid,
|
|
|
+ woid: _vm.woid,
|
|
|
"note-user": _vm.authusername
|
|
|
}
|
|
|
}),
|
|
|
@@ -50112,7 +50118,7 @@ var render = function() {
|
|
|
_vm._l(this.notes, function(note, index) {
|
|
|
return _c(
|
|
|
"li",
|
|
|
- { key: note.noteid, staticClass: "row no-gutters mb-2" },
|
|
|
+ { key: index, staticClass: "row no-gutters mb-2" },
|
|
|
[
|
|
|
_c("note-form-modal", {
|
|
|
attrs: {
|
|
|
@@ -50125,7 +50131,7 @@ var render = function() {
|
|
|
"div",
|
|
|
{
|
|
|
staticClass: "col-md-1 d-flex flex-column mx-md-3",
|
|
|
- class: { "order-last": _vm.userChanged(index) }
|
|
|
+ class: _vm.setOrder(index)
|
|
|
},
|
|
|
[
|
|
|
_c("div", { staticClass: "text-center p-0 m-0" }, [
|